From 9bd3778d1559c20f9ae7567ae253fb95a2ae1447 Mon Sep 17 00:00:00 2001 From: Eric Buckley Date: Fri, 24 Jan 2025 17:20:01 -0800 Subject: [PATCH] fix: release draft variable (#181) ## Description Fix for the calculation of the draft variable in the release workflow. ## Related Issues closes #180 ## Additional Notes Some testing code was added to a previous commit, 5a3dff6, then removed once the new if block was [verified to work](https://github.com/CDCgov/RecordLinker/actions/runs/12942197619/job/36099510623). See the additional context in the linked issue for more context on why the fix should work. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04ff1128..409f891d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,7 +125,7 @@ jobs: echo "Next tag: $next_tag" echo "NEXT_TAG=$next_tag" >> $GITHUB_ENV # If the tag ends in -rc.*, then its a draft release - draft=$([[ "${{ env.NEXT_TAG }}" =~ -rc\.[0-9]+$ ]] && echo false || echo true) + draft=$([[ "$next_tag" =~ -rc\.[0-9]+$ ]] && echo true || echo false) echo "Draft release: $draft" echo "DRAFT=$draft" >> $GITHUB_ENV