We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5549b93 commit 4f57d16Copy full SHA for 4f57d16
.github/workflows/release.yml
@@ -11,6 +11,14 @@ jobs:
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v6
14
+ - name: Verify tag matches version.go
15
+ run: |
16
+ TAG="${GITHUB_REF#refs/tags/v}"
17
+ VERSION="$(grep -oP 'Version = "\K[^"]+' version.go)"
18
+ if [ "$TAG" != "$VERSION" ]; then
19
+ echo "::error::Tag v${TAG} does not match Version in version.go (${VERSION}). Please update version.go."
20
+ exit 1
21
+ fi
22
- uses: cli/gh-extension-precompile@v2
23
with:
24
go_version_file: go.mod
0 commit comments