Skip to content

Commit

Permalink
fix: workflow permission for publishing draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Mar 1, 2024
1 parent bbe88b3 commit 62be918
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 @@ -12,7 +12,6 @@ on:
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write
deployments: write

jobs:
goreleaser:
Expand Down Expand Up @@ -45,6 +44,7 @@ jobs:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: gh release edit ${{ github.ref_name }} --draft=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 62be918

Please sign in to comment.