Skip to content

Commit 710dfe8

Browse files
authored
Fixing issue with pipeline milestone closing not using right version number (#3755)
1 parent b702bc8 commit 710dfe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,15 @@ jobs:
258258
steps:
259259
# Doing a checkout, until this issue is resolved.
260260
# https://github.com/valeriobelli/gh-milestone/issues/15
261+
# As of version 2.1.0 the -R doesn't appear to output valid json when filtering. So still using the checkout.
261262
- uses: actions/checkout@v4
262263

263264
- name: Close Milestone
264265
run: |
265266
gh extension install valeriobelli/gh-milestone
266267
Write-Host "Using extension version $(gh milestone --version)"
267268
$milestones = $(gh milestone list --json number,title) | ConvertFrom-Json
268-
$milestoneNumber = ($milestones | Where-Object { $_.title -eq "5.1.0" }).number
269+
$milestoneNumber = ($milestones | Where-Object { $_.title -eq "${{ inputs.milestone }}" }).number
269270
gh milestone edit $milestoneNumber --state closed
270271
env:
271272
GITHUB_TOKEN: ${{ secrets.SA_PAT }}
@@ -277,7 +278,7 @@ jobs:
277278
environment: production
278279

279280
permissions:
280-
actions: write
281+
actions: write
281282

282283
steps:
283284
# Checkout is needed so that we can update the get_versions.yml file

0 commit comments

Comments
 (0)