Skip to content

Commit

Permalink
Fix permissions of formatter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed May 28, 2024
1 parent 4d9e62d commit 7e54418
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/format-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: julia-actions/setup-julia@v1
with:
Expand All @@ -26,7 +29,7 @@ jobs:
format(["src", "ext", "test"])
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Format code
Expand Down

0 comments on commit 7e54418

Please sign in to comment.