Skip to content

Run the workflow for PRs but don't push the commit #7

Run the workflow for PRs but don't push the commit

Run the workflow for PRs but don't push the commit #7

Workflow file for this run

on:
schedule:
- cron: '*/30 * * * *'
push:
branches:
- '*'
pull_request:
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/setup-python@main
- uses: astral-sh/setup-uv@main
- uses: actions/checkout@main
- run: uv run generate.py
- run: git config --local user.email [email protected]
- run: git config --local user.name "GitHub Action's update job"
- run: git add .
- run: git commit -m 'Update progress values'
- uses: ad-m/github-push-action@master
if: github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}