From 98dac239c62e16638230962aaae0203f217638d9 Mon Sep 17 00:00:00 2001 From: Cesar Flores Date: Thu, 5 Mar 2026 05:21:20 +0700 Subject: [PATCH] feat: add workflow for updating the latest tag on versioned tag pushes --- .github/workflows/update-latest-tag.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/update-latest-tag.yml diff --git a/.github/workflows/update-latest-tag.yml b/.github/workflows/update-latest-tag.yml new file mode 100644 index 0000000..1031493 --- /dev/null +++ b/.github/workflows/update-latest-tag.yml @@ -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