Skip to content

Commit affbc21

Browse files
authored
ci: update V1_LATEST_TAG repo variable on stable releases (#125)
1 parent 188902f commit affbc21

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/bun-compile.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ jobs:
126126
runs-on: ubuntu-latest
127127
permissions:
128128
contents: write
129+
variables: write
129130
steps:
130131
- name: Download all artifacts
131132
uses: actions/download-artifact@v4
@@ -159,3 +160,13 @@ jobs:
159160
$PRERELEASE_FLAG \
160161
artifacts/*
161162
163+
- name: Update V1_LATEST_TAG variable
164+
if: ${{ !contains(inputs.version || github.event.client_payload.version, 'prerelease') }}
165+
env:
166+
GH_TOKEN: ${{ github.token }}
167+
VERSION: ${{ inputs.version || github.event.client_payload.version }}
168+
run: |
169+
gh api --method PATCH "repos/${{ github.repository }}/actions/variables/V1_LATEST_TAG" \
170+
-f name="V1_LATEST_TAG" \
171+
-f value="v${VERSION}"
172+

0 commit comments

Comments
 (0)