Skip to content

Commit

Permalink
Fixing issue with pipeline milestone closing not using right version …
Browse files Browse the repository at this point in the history
…number (#3755)
  • Loading branch information
Keboo authored Jan 3, 2025
1 parent b702bc8 commit 710dfe8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,15 @@ jobs:
steps:
# Doing a checkout, until this issue is resolved.
# https://github.com/valeriobelli/gh-milestone/issues/15
# As of version 2.1.0 the -R doesn't appear to output valid json when filtering. So still using the checkout.
- uses: actions/checkout@v4

- name: Close Milestone
run: |
gh extension install valeriobelli/gh-milestone
Write-Host "Using extension version $(gh milestone --version)"
$milestones = $(gh milestone list --json number,title) | ConvertFrom-Json
$milestoneNumber = ($milestones | Where-Object { $_.title -eq "5.1.0" }).number
$milestoneNumber = ($milestones | Where-Object { $_.title -eq "${{ inputs.milestone }}" }).number
gh milestone edit $milestoneNumber --state closed
env:
GITHUB_TOKEN: ${{ secrets.SA_PAT }}
Expand All @@ -277,7 +278,7 @@ jobs:
environment: production

permissions:
actions: write
actions: write

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

0 comments on commit 710dfe8

Please sign in to comment.