File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -136,16 +136,19 @@ jobs:
136
136
137
137
if : github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.build.outputs.current-version != needs.meta.outputs.latest-version
138
138
139
+ permissions :
140
+ contents : write
141
+
139
142
env :
140
143
TAG : v${{ needs.meta.outputs.latest-version }}
141
144
COMMIT : ${{ github.event.before }}
142
- GH_TOKEN : ${{ secrets.PAT_GITHUB }}
143
145
144
146
steps :
145
147
146
148
- name : Create a tag to mark previous latest version
147
149
env :
148
150
COMMIT : ${{ env.COMMIT }}
151
+ GH_TOKEN : ${{ secrets.PAT_GITHUB }}
149
152
run : >
150
153
gh api
151
154
--method POST
@@ -156,6 +159,8 @@ jobs:
156
159
-f "sha=$COMMIT"
157
160
158
161
- name : Create release assotiated with the tag
162
+ env :
163
+ GH_TOKEN : ${{ github.token }}
159
164
run : >
160
165
gh api
161
166
--method POST
You can’t perform that action at this time.
0 commit comments