From 67ef4d92fae250fc916f4de5bd667db76551958e Mon Sep 17 00:00:00 2001 From: Paul Abel <128620221+pdabelf5@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:09:33 +0100 Subject: [PATCH] fix dry_run logic in milestone release job (#5861) --- .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 6f362348a9..bbe4b809b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -421,7 +421,7 @@ jobs: /repos/${{ github.repository }}/milestones \ | jq --arg version ${{ inputs.nic_version }} -r \ '.[] | select(.title == $version) | .number') - if ! ${{ inputs.dry_run }} + if ! ${{ inputs.dry_run }}; then gh api --method PATCH -H "Accept: application/vnd.github.v3+json" \ /repos/${{ github.repository }}/milestones/${milestone_number} \ else