Skip to content

Commit

Permalink
Fix Actions permissions (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
machv authored Feb 6, 2024
1 parent d10a2d2 commit 8b4d7e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/create-prerelase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
name: Create prerelease
if: "!contains(github.event.head_commit.message, '[no release]')"
runs-on: windows-2019
permissions:
# needed to create a release
contents: write
steps:
- uses: actions/checkout@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
name: Bump version
if: "!contains(github.event.head_commit.message, '[no release]')"
runs-on: windows-2019
permissions:
# needed to create a release
contents: write
outputs:
previous_tag: ${{ steps.bump.outputs.previous_tag }}
new_tag: ${{ steps.bump.outputs.new_tag }}
Expand Down Expand Up @@ -52,6 +55,9 @@ jobs:
name: Create release
if: "!contains(github.event.head_commit.message, '[no release]')"
runs-on: self-hosted
permissions:
# needed to create a release
contents: write
needs: new-version
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 8b4d7e5

Please sign in to comment.