-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 892 Bytes
/
close.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Description:
# - Close a milestone by title or number.
name: Milestone Close@develop
on:
workflow_dispatch:
inputs:
milestone:
required: true
description: 'Title / Number'
# Fix GraphQL: Resource not accessible by integration (updatePullRequest)
permissions:
contents: write
pull-requests: write
jobs:
close-milestone:
runs-on: ubuntu-latest
name: Close Milestone
steps:
- name: Close Milestone
id: close
uses: hustcer/milestone-action@develop
with:
action: close
milestone: ${{ github.event.inputs.milestone }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Output Milestone Number
if: success()
shell: nu {0}
run: |
print $"The closed milestone number is (ansi p)${{ steps.close.outputs.milestone-number }}(ansi reset)"