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:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
update-tag:
|
||||
update-tags:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
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: |
|
||||
git tag -f stable ${{ github.event.release.tag_name }}
|
||||
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