Skip to content

Commit

Permalink
Fix permissions issue in nightly release workflow (#14174)
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Jun 20, 2024
1 parent 4b3b4e1 commit 026b787
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Nightly Release Candidate

permissions:
contents: write
pull-requests: read

on:
schedule:
Expand Down Expand Up @@ -58,16 +59,15 @@ jobs:
if: env.SHOULD_CREATE_RELEASE == 'true'
uses: mikepenz/release-changelog-builder-action@v4
with:
tag: ${{ env.next_tag }}
toTag: ${{ env.next_tag }}
fromTag: ${{ env.latest_tag }}

- name: Create release
id: create_release
if: env.SHOULD_CREATE_RELEASE == 'true'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.next_tag }}
name: ${{ env.next_tag }}
release_name: "Nightly Release Candidate ${{ env.next_tag }}"
draft: false
prerelease: true
Expand Down

0 comments on commit 026b787

Please sign in to comment.