We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3d8f7 commit f2a306bCopy full SHA for f2a306b
.github/workflows/cd.vx.yml
@@ -13,13 +13,21 @@ permissions:
13
contents: write
14
15
jobs:
16
- retag:
+ vtagger:
17
runs-on: ubuntu-latest
18
steps:
19
- uses: actions/checkout@v4
20
- uses: fischerscode/tagger@v0
21
with:
22
prefix: v
23
- run: |
24
- git tag -f latest
25
- git push origin latest --force
+ latest_release=$(curl -s \
+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
26
+ -H "Accept: application/vnd.github+json" \
27
+ https://api.github.com/repos/${{ github.repository }}/releases/latest \
28
+ | jq -r '.tag_name')
29
+
30
+ if [ "${latest_release}" = "${{ github.event.release.tag_name }}" ]; then
31
+ git tag -f latest
32
+ git push origin latest --force
33
+ fi
0 commit comments