feat: add workflow for updating the latest tag on versioned tag pushes

This commit is contained in:
2026-03-05 05:21:20 +07:00
parent 6984a872f1
commit 98dac239c6

21
.github/workflows/update-latest-tag.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Update Latest Tag
on:
push:
tags:
- v*
jobs:
update-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Update latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f latest
git push origin latest --force