File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,18 @@ jobs:
146
146
prev_sha=$(git rev-parse nightly)
147
147
echo "prev_SHA=$prev_sha" >> $GITHUB_OUTPUT;
148
148
149
- - name : Create previous nightly tag
149
+ - name : Update tag pointing to the previous nightly release
150
150
if : steps.check_nightly.outputs.release_exists
151
151
run : |
152
- curl -X POST \
152
+ curl -X PATCH \
153
153
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
154
154
-H "Accept: application/vnd.github.v3+json" \
155
- https://api.github.com/repos/${{ github.repository }}/git/refs \
155
+ https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${{ env.PREV_TAG }} \
156
156
-d '{
157
- "ref": "refs/tags/${{ env.PREV_TAG }}",
158
157
"sha": "${{ steps.get_commit_sha.outputs.prev_SHA }}"
159
158
}'
160
159
161
- - name : Remove previous nightly tag
160
+ - name : Remove current nightly tag before release
162
161
if : steps.check_nightly.outputs.release_exists
163
162
run : |
164
163
git tag -d nightly
You can’t perform that action at this time.
0 commit comments