Skip to content

Commit 854335f

Browse files
committed
ci: update V1_LATEST_TAG repo variable on stable releases
After creating a stable (non-prerelease) release, update the V1_LATEST_TAG repo variable so the hermes v2 release workflow can restore 'latest' to the correct v1 tag.
1 parent 188902f commit 854335f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/bun-compile.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,13 @@ jobs:
159159
$PRERELEASE_FLAG \
160160
artifacts/*
161161
162+
- name: Update V1_LATEST_TAG variable
163+
if: ${{ !contains(inputs.version || github.event.client_payload.version, 'prerelease') }}
164+
env:
165+
GH_TOKEN: ${{ github.token }}
166+
VERSION: ${{ inputs.version || github.event.client_payload.version }}
167+
run: |
168+
gh api --method PATCH "repos/${{ github.repository }}/actions/variables/V1_LATEST_TAG" \
169+
-f name="V1_LATEST_TAG" \
170+
-f value="v${VERSION}"
171+

0 commit comments

Comments
 (0)