File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -416,11 +416,17 @@ jobs:
416
416
/repos/${{ github.repository }}/milestones \
417
417
| jq --arg version ${{ inputs.nic_version }} -r \
418
418
'.[] | select(.title == $version) | .number')
419
- if ! ${{ inputs.dry_run }}
420
- gh api --method PATCH -H "Accept: application/vnd.github.v3+json" \
421
- /repos/${{ github.repository }}/milestones/${milestone_number} \
419
+ if [ -n "${milestone_number}" ]; then
420
+ if ! ${{ inputs.dry_run }}; then
421
+ gh api --method PATCH -H "Accept: application/vnd.github.v3+json" \
422
+ /repos/${{ github.repository }}/milestones/${milestone_number} \
423
+ -f "title=v${{ inputs.nic_version }}" \
424
+ -f "state=closed";
425
+ else
426
+ echo "Skipping closing Github Release milestone, DRY_RUN"
427
+ fi
422
428
else
423
- echo "Skipping closing Github Release milestone, DRY_RUN "
429
+ echo "Github Milestone not available, closed already. "
424
430
fi
425
431
426
432
- name : Get Github release id
You can’t perform that action at this time.
0 commit comments