File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -136,19 +136,12 @@ 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
-
142
139
env :
143
140
TAG : v${{ needs.meta.outputs.latest-version }}
144
141
COMMIT : ${{ github.event.before }}
145
- GH_TOKEN : ${{ github.token }}
142
+ GH_TOKEN : ${{ secrets.PAT_GITHUB }}
146
143
147
144
steps :
148
- - name : Checkout current head
149
- uses : actions/checkout@v4
150
- with :
151
- ref : ${{ env.COMMIT }}
152
145
153
146
- name : Create a tag to mark previous latest version
154
147
env :
@@ -161,6 +154,7 @@ jobs:
161
154
/repos/${{ github.repository }}/git/refs
162
155
-f "ref=refs/tags/$TAG"
163
156
-f "sha=$COMMIT"
157
+
164
158
- name : Create release assotiated with the tag
165
159
run : >
166
160
gh api
@@ -171,7 +165,7 @@ jobs:
171
165
-f "tag_name=$TAG"
172
166
-f "name=$TAG"
173
167
-f "body=Automatic release for $TAG"
174
- -f "generate_release_notes=true"
168
+ -F "generate_release_notes=true"
175
169
176
170
177
171
automerge :
You can’t perform that action at this time.
0 commit comments