Skip to content

Commit

Permalink
try fix update CoC permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Oct 5, 2024
1 parent a3b6f05 commit a59c75f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/update_coc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: write
issues: write
pull-requests: write

jobs:
update_code_of_conduct:
permissions:
contents: write
issues: write
pull-requests: write

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -59,9 +60,9 @@ jobs:
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-coc
branch: bot-update-coc
add-paths: |
CODE_OF_CONDUCT.md
title: "Update Code of Conduct"
title: "🤖 Update Code of Conduct 🤖"
body: "Update the Code of Conduct with the latest version from the django-commons repository."
commit-message: "Update CODE_OF_CONDUCT.md from django-commons"

0 comments on commit a59c75f

Please sign in to comment.