Skip to content

Commit 60d71f5

Browse files
committed
Add local semver tag creation before GoReleaser build
1 parent 4466302 commit 60d71f5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release-gqlkit-sdl.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ jobs:
2222
with:
2323
go-version-file: gqlkit-sdl/go.mod
2424

25-
- name: Extract version
25+
- name: Extract version and create local semver tag
2626
id: version
2727
run: |
2828
FULL_TAG="${GITHUB_REF#refs/tags/}"
2929
VERSION="${FULL_TAG#gqlkit-sdl/}"
30+
git tag -f "$VERSION"
3031
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3132
echo "full_tag=$FULL_TAG" >> "$GITHUB_OUTPUT"
3233

.github/workflows/release-gqlkit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ jobs:
2222
with:
2323
go-version-file: gqlkit/go.mod
2424

25-
- name: Extract version
25+
- name: Extract version and create local semver tag
2626
id: version
2727
run: |
2828
FULL_TAG="${GITHUB_REF#refs/tags/}"
2929
VERSION="${FULL_TAG#gqlkit/}"
30+
git tag -f "$VERSION"
3031
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3132
echo "full_tag=$FULL_TAG" >> "$GITHUB_OUTPUT"
3233

0 commit comments

Comments
 (0)