mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
30 lines
669 B
YAML
30 lines
669 B
YAML
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
|