Skip to content

Commit

Permalink
Add echo into Close Milestone step
Browse files Browse the repository at this point in the history
For diagnostics
  • Loading branch information
artembilan committed Nov 9, 2023
1 parent 30c0a6a commit ded0dfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/close-milestone-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ 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')"
echo MILESTONE_ID=$MILESTONE_ID
if [ $MILESTONE_ID ]; then
gh api -X PATCH repos/$OWNER/$REPO/milestones/$MILESTONE_ID -f state='closed'
echo repo closed
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
Expand Down

0 comments on commit ded0dfd

Please sign in to comment.