diff --git a/.github/workflows/update_blueprints.yaml b/.github/workflows/update_blueprints.yaml index 8d26330..c33229e 100644 --- a/.github/workflows/update_blueprints.yaml +++ b/.github/workflows/update_blueprints.yaml @@ -8,6 +8,9 @@ on: - cron: '0 0 * * *' # Every day at midnight workflow_dispatch: # Allow manual triggering of the workflow +permissions: + contents: write # Grant write permissions + jobs: update-blueprints: runs-on: ubuntu-latest @@ -22,12 +25,17 @@ jobs: python-version: '3.x' - name: Run update script - run: python scripts/update_blueprints.py + run: python update_blueprints.py - name: Commit changes + env: + GIT_AUTHOR_EMAIL: action@github.com + GIT_AUTHOR_NAME: GitHub Action + GIT_COMMITTER_EMAIL: action@github.com + GIT_COMMITTER_NAME: GitHub Action run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --global user.email "action@github.com" + git config --global user.name "GitHub Action" git add README.md git commit -m "Update blueprint list" git push