Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b76290f4
Unverified
Commit
b76290f4
authored
Jun 15, 2022
by
Yih-Dar
Committed by
GitHub
Jun 15, 2022
Browse files
Change push CI to run on workflow_run event (#17692)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
d453ea61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
.github/workflows/self-push-caller.yml
.github/workflows/self-push-caller.yml
+4
-12
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+4
-1
No files found.
.github/workflows/self-push-caller.yml
View file @
b76290f4
# Used to trigger self-push CI
name
:
Self-hosted runner (push-caller)
name
:
Self-hosted runner (push-caller)
on
:
on
:
...
@@ -13,17 +14,8 @@ on:
...
@@ -13,17 +14,8 @@ on:
jobs
:
jobs
:
run_push_ci
:
run_push_ci
:
name
:
Run
Push CI
name
:
Trigger
Push CI
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Checkout transformers
-
name
:
Trigger push CI via workflow_run
uses
:
actions/checkout@v2
run
:
echo "Trigger push CI via workflow_run"
with
:
\ No newline at end of file
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
.github/workflows/self-push.yml
View file @
b76290f4
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment