Skip to content

Commit 30a9d52

Browse files
committed
fix(ci): Modify permission to make sure the release can be created
1 parent 677e5e8 commit 30a9d52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: ${{ needs.check-version.outputs.tag_found == 'not found' }}
5353

5454
permissions:
55-
contents: read
55+
contents: write
5656
packages: write
5757
attestations: write
5858
id-token: write
@@ -89,7 +89,7 @@ jobs:
8989

9090
- name: Create release
9191
uses: ncipollo/release-action@v1
92-
if: ${{ github.event_name == 'schedule' }}
92+
if: ${{ github.event_name != 'push' }}
9393
with:
9494
tag: "v${{ needs.check-version.outputs.nekobox_version }}"
9595
body: |

0 commit comments

Comments
 (0)