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:
Antoine Barthelemy 2023-10-26 22:20:56 +02:00 committed by GitHub
parent 8767493626
commit 5f01fa71eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

21
.github/workflows/retag.yml vendored Normal file
View 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

View file

@ -1,3 +0,0 @@
## Unreleased
Initial release. It provides feature parity with the [setup-terraform](https://github.com/hashicorp/setup-terraform) action.