16
.github/workflows/release_tag.yml
vendored
16
.github/workflows/release_tag.yml
vendored
@@ -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
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user