Skip to content

Commit a40760d

Browse files
committed
Fix tagging issues
1 parent 97dddde commit a40760d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/nightly.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,18 @@ jobs:
146146
prev_sha=$(git rev-parse nightly)
147147
echo "prev_SHA=$prev_sha" >> $GITHUB_OUTPUT;
148148
149-
- name: Create previous nightly tag
149+
- name: Update tag pointing to the previous nightly release
150150
if: steps.check_nightly.outputs.release_exists
151151
run: |
152-
curl -X POST \
152+
curl -X PATCH \
153153
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
154154
-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 }} \
156156
-d '{
157-
"ref": "refs/tags/${{ env.PREV_TAG }}",
158157
"sha": "${{ steps.get_commit_sha.outputs.prev_SHA }}"
159158
}'
160159
161-
- name: Remove previous nightly tag
160+
- name: Remove current nightly tag before release
162161
if: steps.check_nightly.outputs.release_exists
163162
run: |
164163
git tag -d nightly

0 commit comments

Comments
 (0)