.github/workflows/new_series.yml #5377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: '*/10 * * * *' | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
push_new_series: | |
runs-on: ubuntu-24.04 | |
concurrency: | |
group: push_new_series | |
cancel-in-progress: true | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
# a PAT must be generated with workflow permission, else it's not | |
# possible to push any change for those files | |
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow | |
token: ${{ secrets.WORKFLOW_COMMIT_TOKEN }} | |
- run: git fetch -a origin --unshallow || true | |
- run: git config user.name "GitHub Actions Bot" | |
- run: git config user.email "<[email protected]>" | |
- run: git config advice.detachedHead false | |
- run: sudo pip install b4 | |
- run: ./push_new_series.sh |