From a353da346ea2d3975a4e793c64bc11fa0ad1ba58 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 9 Nov 2023 16:19:07 -0500 Subject: [PATCH] Some JQuery tweaks --- .github/workflows/close-milestone-on-release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-milestone-on-release.yml b/.github/workflows/close-milestone-on-release.yml index e1ed3e8..b2cbd85 100644 --- a/.github/workflows/close-milestone-on-release.yml +++ b/.github/workflows/close-milestone-on-release.yml @@ -24,10 +24,8 @@ jobs: - name: Close Milestone run: | TAG=${{ inputs.releaseTag }} - echo TAG=$TAG - MILESTONE_NAME=${TAG#v} - echo MILESTONE_NAME=$MILESTONE_NAME - MILESTONE_ID="$(gh api repos/$OWNER/$REPO/milestones --jq '.[] | select(.title == "$MILESTONE_NAME") | .number')" + export MILESTONE_NAME=${TAG#v} + MILESTONE_ID=$(gh api repos/$OWNER/$REPO/milestones --jq '.[] | select(.title == env.MILESTONE_NAME) | .number') echo MILESTONE_ID=$MILESTONE_ID if [ $MILESTONE_ID ]; then gh api -X PATCH repos/$OWNER/$REPO/milestones/$MILESTONE_ID -f state='closed'