Skip to content

Commit 6463e1d

Browse files
authored
Update auto-close-pr.yml
use gh-cli instead of marketplace extension
1 parent f7f7f19 commit 6463e1d

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/auto-close-pr.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,24 @@ jobs:
88
close-pr:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Close Pull Request
12-
uses: peter-evans/[email protected]
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Install GitHub CLI
15+
uses: heyValdemars/[email protected]
1316
with:
14-
comment: >
15-
Thank you for your interest in contributing to PEcAn documentation!
17+
gh-version: latest
18+
19+
- name: Close PR with GH CLI
20+
run: |
21+
gh pr close "${{ github.event.pull_request.number }}" \
22+
--repo ${{ github.repository }} \
23+
--comment "Thank you for your interest in contributing to PEcAn documentation!
1624
17-
This repository is **automatically maintained** and synchronized from the `book_source/` directory of the [pecanproject/pecan](https://github.com/pecanproject/pecan) repository.
25+
This repository is automatically maintained and synchronized from the book_source/ directory of the [pecanproject/pecan](https://github.com/pecanproject/pecan) repository.
1826

19-
Please submit your pull request there instead:
20-
👉 [pecanproject/pecan](https://github.com/pecanproject/pecan)
27+
Please submit your pull request there instead:
28+
👉 [pecanproject/pecan](https://github.com/pecanproject/pecan)
2129

22-
We appreciate your effort and understanding!
23-
delete-branch: true
30+
We appreciate your effort and understanding!" \
31+
--delete-branch

0 commit comments

Comments
 (0)