Skip to content

Commit 7c04f78

Browse files
committed
fix: preserve annotated release tag verification
1 parent c7ea705 commit 7c04f78

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ jobs:
3131
RELEASE_TAG: ${{ github.ref_name }}
3232
run: |
3333
[[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
34-
test "$(git cat-file -t "$RELEASE_TAG")" = tag
35-
test "$(git rev-list -n 1 "$RELEASE_TAG")" = "$GITHUB_SHA"
34+
release_verify_ref="refs/tags/release-verify"
35+
git fetch --force --no-tags origin "refs/tags/$RELEASE_TAG:$release_verify_ref"
36+
test "$(git cat-file -t "$release_verify_ref")" = tag
37+
test "$(git rev-list -n 1 "$release_verify_ref")" = "$GITHUB_SHA"
38+
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
3639
go run ./cmd/manifest-validator components.json
3740
go test ./...
3841
go vet ./...

0 commit comments

Comments
 (0)