mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
feat: add workflow for updating the latest tag on versioned tag pushes
This commit is contained in:
21
.github/workflows/update-latest-tag.yml
vendored
Normal file
21
.github/workflows/update-latest-tag.yml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user