This reverts commit b76290f44c.
This commit is contained in:
16
.github/workflows/self-push-caller.yml
vendored
16
.github/workflows/self-push-caller.yml
vendored
@@ -1,4 +1,3 @@
|
|||||||
# Used to trigger self-push CI
|
|
||||||
name: Self-hosted runner (push-caller)
|
name: Self-hosted runner (push-caller)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -14,8 +13,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run_push_ci:
|
run_push_ci:
|
||||||
name: Trigger Push CI
|
name: Run Push CI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Trigger push CI via workflow_run
|
- name: Checkout transformers
|
||||||
run: echo "Trigger push CI via workflow_run"
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
||||||
|
|
||||||
|
- name: Checkout to branch push-ci
|
||||||
|
# A more strict way to make sure`push-ci` is exactly the same as `main` at the push event commit.
|
||||||
|
run: |
|
||||||
|
git checkout -b push-ci
|
||||||
|
git push -u origin push-ci --force
|
||||||
|
|||||||
5
.github/workflows/self-push.yml
vendored
5
.github/workflows/self-push.yml
vendored
@@ -1,12 +1,9 @@
|
|||||||
name: Self-hosted runner (push)
|
name: Self-hosted runner (push)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
|
||||||
workflows: ["Self-hosted runner (push-caller)"]
|
|
||||||
branches: ["main"]
|
|
||||||
types: [completed]
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- push-ci
|
||||||
- ci_*
|
- ci_*
|
||||||
- ci-*
|
- ci-*
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user