Skip to content

Commit 49f9472

Browse files
committed
Test closing milestone
1 parent 41489ff commit 49f9472

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Icon Update
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
GITHUB_TOKEN: ${{ secrets.SA_PAT }}
8+
9+
10+
defaults:
11+
run:
12+
shell: pwsh
13+
14+
jobs:
15+
close_milestone:
16+
runs-on: ubuntu-latest
17+
name: Close Milestone
18+
19+
steps:
20+
# Doing a checkout, until this issue is resolved.
21+
# https://github.com/valeriobelli/gh-milestone/issues/15
22+
- uses: actions/checkout@v4
23+
24+
- name: Close Milestone
25+
run: |
26+
gh extension install valeriobelli/gh-milestone
27+
Write-Host "Using extension version $(gh milestone --version)"
28+
$milestones = $(gh milestone list --json number,title) | ConvertFrom-Json
29+
$milestoneNumber = ($milestones | Where-Object { $_.title -eq "5.1.0" }).number
30+
gh milestone edit $milestoneNumber --state closed

0 commit comments

Comments
 (0)