mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-05 23:34:45 +00: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:
parent
8767493626
commit
5f01fa71eb
2 changed files with 21 additions and 3 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
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
## Unreleased
|
||||
|
||||
Initial release. It provides feature parity with the [setup-terraform](https://github.com/hashicorp/setup-terraform) action.
|
||||
Loading…
Add table
Add a link
Reference in a new issue