Skip to content

Update

Update #1646

Workflow file for this run

name: Update
on:
schedule:
- cron: '35 8 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "modm update bot"
- name: Run update.py script
run: |
python3 update.py
- name: Git push
run: |
git push origin master
keep-alive:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Re-enable workflow
env:
GITHUB_TOKEN: ${{ github.token }}
shell: sh
run: |
case "${GITHUB_WORKFLOW_REF:?}" in
"${GITHUB_REPOSITORY:?}"/.github/workflows/*.y*ml@*) ;;
*) false ;;
esac
workflow="${GITHUB_WORKFLOW_REF%%@*}"
workflow="${workflow#${GITHUB_REPOSITORY}/.github/workflows/}"
gh api -X PUT "repos/${GITHUB_REPOSITORY}/actions/workflows/${workflow}/enable"