mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-31 15:02:19 +00:00
feat(gha): init release workflow
Signed-off-by: Antoine Barthelemy <antoine@linux.com>
This commit is contained in:
parent
6b016a1db7
commit
94636598dd
1 changed files with 21 additions and 0 deletions
21
.github/workflows/retag.yml
vendored
Normal file
21
.github/workflows/retag.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Retag
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[1-2].[0-9]+.[0-9]+*'
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
tag:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
set -o pipefail
|
||||
git tag --force "$(grep '^v[1-2]\.[0-9]\+\.[0-9]\+\(.*\)\?$' <<< ${GITHUB_REF#refs/*/} | sed 's/^v\([1-2]\)\..*/v\1/')"
|
||||
git push --tag --force
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue