Skip to content

Commit

Permalink
Allow preview release process to comment on PRs
Browse files Browse the repository at this point in the history
guardian/gha-scala-library-release-workflow#19
introduces support for publishing preview releases, but note this does
use the `pull-requests: write` permission in order to comment on the PR
to announce that the release has been published - so we need to
additionally grant that permission:

https://github.com/guardian/gha-scala-library-release-workflow/pull/19/files#r1441589383
  • Loading branch information
rtyley committed Jan 5, 2024
1 parent 7f3204a commit ef922f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
release:
uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@main
permissions: { contents: write }
permissions: { contents: write, pull-requests: write }
secrets:
SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }}
PGP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }}

0 comments on commit ef922f4

Please sign in to comment.