Skip to content

Commit 9217c0c

Browse files
author
Oleg
committed
Use default github token for release creation
1 parent 37e94bb commit 9217c0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,19 @@ jobs:
136136

137137
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.build.outputs.current-version != needs.meta.outputs.latest-version
138138

139+
permissions:
140+
contents: write
141+
139142
env:
140143
TAG: v${{ needs.meta.outputs.latest-version }}
141144
COMMIT: ${{ github.event.before }}
142-
GH_TOKEN: ${{ secrets.PAT_GITHUB }}
143145

144146
steps:
145147

146148
- name: Create a tag to mark previous latest version
147149
env:
148150
COMMIT: ${{ env.COMMIT }}
151+
GH_TOKEN: ${{ secrets.PAT_GITHUB }}
149152
run: >
150153
gh api
151154
--method POST
@@ -156,6 +159,8 @@ jobs:
156159
-f "sha=$COMMIT"
157160
158161
- name: Create release assotiated with the tag
162+
env:
163+
GH_TOKEN: ${{ github.token }}
159164
run: >
160165
gh api
161166
--method POST

0 commit comments

Comments
 (0)