Skip to content

Commit

Permalink
formula-update.yml: update create pull request action and add permiss…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
ChrisSchinnerl committed Nov 6, 2024
1 parent 4420c5d commit c80b07d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/formula-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
required: true
default: "renterd"

permissions:
contents: write
pull-requests: write

jobs:
update-formula:
runs-on: ubuntu-latest
Expand All @@ -36,9 +40,9 @@ jobs:
sed -i 's/tag: "[^"]*"/tag: "${{ env.RELEASE_TAG }}"/' ./Formula/${{ env.PROJECT }}.rb
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true
commit-message: "${{ env.PROJECT }}: ${{ env.RELEASE_TAG }}"
title: "${{ env.PROJECT }}: ${{ env.RELEASE_TAG }}"
body: "This is an automated PR to update the ${{ env.PROJECT }} formula"
Expand Down

0 comments on commit c80b07d

Please sign in to comment.