-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 922 Bytes
/
new_series.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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