From 71330df1331aa1b9252403d5789a7058253b3239 Mon Sep 17 00:00:00 2001 From: Raju Pavuluri Date: Tue, 27 Oct 2026 16:51:59 -0400 Subject: [PATCH] fix(ci): block releases when Go tests fail --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff218c5..13f2df5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: run: go test ./... -count=1 - name: Delete tag on failure - if: steps.test.conclusion == 'failure' && startsWith(github.ref, 'refs/tags/') + if: steps.test.outcome == 'failure' && startsWith(github.ref, 'refs/tags/') run: | echo "Tests failed. Deleting tag ${GITHUB_REF#refs/tags/}..." git config --global user.name "github-actions[bot]" @@ -70,7 +70,7 @@ jobs: exit 1 - name: Fail if tests failed (non-tag runs) - if: steps.test.conclusion == 'failure' + if: steps.test.outcome == 'failure' run: exit 1 - name: Set up Python