Move and push latest tag

Solves #1740
This commit is contained in:
Edward Firmo
2024-01-31 13:20:48 +01:00
parent 70e98495a2
commit e5776e948c

View File

@@ -1,19 +1,29 @@
--- ---
name: Update Stable Tag name: Update Tags
on: on:
release: release:
types: [published] types: [published]
jobs: jobs:
update-tag: update-tags:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4.1.0 uses: actions/checkout@v4.1.0
- name: Move and push tag - name: Set up Git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Move and push stable tag
run: | run: |
git tag -f stable ${{ github.event.release.tag_name }} git tag -f stable ${{ github.event.release.tag_name }}
git push -f origin stable git push -f origin stable
- name: Move and push latest tag
run: |
git tag -f latest ${{ github.event.release.tag_name }}
git push -f origin latest
... ...