Skip to content

Commit

Permalink
Give permissions for auto-commit (#6)
Browse files Browse the repository at this point in the history
Our GITHUB_TOKEN permissions no longer include `contents: write` by default, so explicitly add it.
  • Loading branch information
scotttrinh authored Apr 16, 2024
1 parent 2f3c9ad commit 40182cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ on:
inputs: {}

jobs:
permissions:
contents: write
update-commit:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: pip install semver jinja2
- name: Run autoupdate.py
run: ./autoupdate.py
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
with:
commit_message: "Auto-update package versions"

0 comments on commit 40182cb

Please sign in to comment.