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
0932adb3
Unverified
Commit
0932adb3
authored
Jun 02, 2022
by
Yih-Dar
Committed by
GitHub
Jun 02, 2022
Browse files
Split push CI into 2 workflows (#17369)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
58fb3c9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
.github/workflows/self-push-caller.yml
.github/workflows/self-push-caller.yml
+29
-0
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+1
-1
No files found.
.github/workflows/self-push-caller.yml
0 → 100644
View file @
0932adb3
name
:
Self-hosted runner (push-caller)
on
:
push
:
branches
:
-
main
paths
:
-
"
src/**"
-
"
tests/**"
-
"
.github/**"
-
"
templates/**"
-
"
utils/**"
jobs
:
run_push_ci
:
name
:
Run Push CI
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout transformers
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
.github/workflows/self-push.yml
View file @
0932adb3
...
@@ -3,7 +3,7 @@ name: Self-hosted runner (push)
...
@@ -3,7 +3,7 @@ name: Self-hosted runner (push)
on
:
on
:
push
:
push
:
branches
:
branches
:
-
main
-
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