Skip to content

Commit

Permalink
workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
yshavit committed Mar 2, 2025
1 parent 2b863f7 commit 6f112aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/prepare-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v2
Expand All @@ -39,10 +42,9 @@ jobs:
- name: Create new release
id: create_release
run: |
release_url="$(gh release create v${{ github.event.inputs.new_version }} --draft --title "v${{ github.event.inputs.new_version }}" --generate-notes)"
release_url="$(gh release create "v${{ github.event.inputs.new_version }}" --draft --title "v${{ github.event.inputs.new_version }}" --generate-notes)"
echo "release_url=$release_url" >> "$GITHUB_OUTPUT"
- name: Update Cargo.toml version
run: |
set -euo pipefail
Expand Down

0 comments on commit 6f112aa

Please sign in to comment.