mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-30 03:44:21 +01:00
feat(gha): Automated Release Workflow for GitHub Repositories (#10)
Signed-off-by: Antoine Barthelemy <antoine@linux.com> --------- Signed-off-by: Antoine Barthelemy <antoine@linux.com>
This commit is contained in:
1 parent
8767493626
commit
5f01fa71eb
2 files changed
+21
-3
No files matched your search
@@ -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
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## Unreleased
|
|
||||||
|
|
||||||
Initial release. It provides feature parity with the [setup-terraform](https://github.com/hashicorp/setup-terraform) action.
|
|
||||||
Reference in new issue
Block a user