Skip to content

.github/workflows/new_series.yml #317

.github/workflows/new_series.yml

.github/workflows/new_series.yml #317

Workflow file for this run

on:
schedule:
- cron: '*/10 * * * *'
workflow_dispatch:
permissions: write-all
jobs:
push_new_series:
runs-on: ubuntu-latest
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
keepalive-job:
name: Keepalive Workflow
if: ${{ always() }}
needs: push_new_series
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2
with:
use_api: false