Unverified Commit 0932adb3 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Split push CI into 2 workflows (#17369)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 58fb3c9f
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
...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment