Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ jobs:
with:
fetch-depth: 0
ref: ${{ needs.validate.outputs.tag }}
- name: Verify validated commit
shell: bash
env:
EXPECTED_COMMIT: ${{ needs.validate.outputs.commit }}
run: |
actual_commit=$(git rev-parse HEAD)
if [[ "$actual_commit" != "$EXPECTED_COMMIT" ]]; then
printf 'Release tag changed after validation (expected %s, got %s).\n' \
"$EXPECTED_COMMIT" "$actual_commit" >&2
exit 1
fi
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
Expand All @@ -96,6 +107,8 @@ jobs:
run: go vet ./...
- name: Test
run: go test -race ./...
- name: Build
run: go build -buildvcs=false -trimpath ./cmd/termcourse
- name: Validate release configuration
if: runner.os == 'Linux'
uses: goreleaser/goreleaser-action@v7
Expand Down