Skip to content

Commit 55fcee4

Browse files
authored
Fix broken PR issue close command in GHA (#55131)
1 parent d63af29 commit 55fcee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-modified-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
MESSAGE+=" You can [read more here](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#contributing-libdts-fixes)."
100100
MESSAGE+=" For house-keeping purposes, this pull request will be closed."
101101
102-
gh pr close $issue --repo ${{ github.repository }} --comment "$MESSAGE"
102+
gh pr close ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --comment "$MESSAGE"
103103
exit 1 # Stop the pipeline; we just closed the PR.
104104
fi
105105

0 commit comments

Comments
 (0)