Skip to content

Commit c0d3a86

Browse files
committed
maint: only remove PR milestone if triggered by event
Signed-off-by: Yury V. Zaytsev <[email protected]>
1 parent 304c9d0 commit c0d3a86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/process-closed-prs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
GH_REPO: ${{ github.repository }}
3131
3232
- run: |
33-
gh pr edit ${{ inputs.pr_number != '' && inputs.pr_number || github.event.pull_request.number }} \
33+
gh pr edit ${{ github.event.pull_request.number }} \
3434
--remove-milestone
35-
if: github.event.pull_request.merged != true
35+
if: ${{ ! github.event.pull_request.merged && ! inputs.pr_number != ''}}
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
GH_REPO: ${{ github.repository }}
38+
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)