Skip to content

Commit

Permalink
updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asucrews authored Jul 4, 2024
1 parent d25fe92 commit 7e776e2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/update_blueprints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [email protected]
GIT_AUTHOR_NAME: GitHub Action
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: GitHub Action
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add README.md
git commit -m "Update blueprint list"
git push
Expand Down

0 comments on commit 7e776e2

Please sign in to comment.