Skip to content

Commit a9e06c6

Browse files
Merge pull request BraneFramework#291 from BraneFramework/nightly-release
chore(deps): Allow write access to repository for nightly releases
2 parents 36af43c + 457b974 commit a9e06c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nightly_release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
required: false
1919
type: boolean
2020

21+
2122
concurrency:
2223
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2324
cancel-in-progress: true
@@ -31,6 +32,8 @@ jobs:
3132
tag:
3233
name: "Add nightly tag"
3334
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
3437
steps:
3538
- name: Checkout
3639
uses: actions/checkout@v4
@@ -113,6 +116,8 @@ jobs:
113116
name: "Release artifacts to GitHub"
114117
needs: build
115118
runs-on: ubuntu-latest
119+
permissions:
120+
contents: write
116121
steps:
117122
- name: Download artifacts
118123
uses: actions/download-artifact@v4
@@ -121,7 +126,7 @@ jobs:
121126
path: release
122127
merge-multiple: true
123128
- name: Delete previous nightly release
124-
run: gh -R $GITHUB_REPOSITORY release delete nightly
129+
run: gh -R "$GITHUB_REPOSITORY" release delete nightly
125130
- name: Release
126131
uses: softprops/action-gh-release@v2
127132
with:

0 commit comments

Comments
 (0)