From 109f8aab00c21b53b0fc24bac4bf3cf7ead7c040 Mon Sep 17 00:00:00 2001 From: Roman Martsev Date: Wed, 29 May 2024 12:27:59 +0300 Subject: [PATCH] feat(gha): add tag 'latest' --- .github/workflows/move-latest-tag.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/move-latest-tag.yaml diff --git a/.github/workflows/move-latest-tag.yaml b/.github/workflows/move-latest-tag.yaml new file mode 100644 index 0000000..0b99301 --- /dev/null +++ b/.github/workflows/move-latest-tag.yaml @@ -0,0 +1,22 @@ +name: Move Latest Tag + +on: + release: + types: [created] + +jobs: + move-latest-tag: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Git + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + + - name: Move the latest tag + run: | + git tag -fa latest -m "Update latest tag" + git push -f origin latest