Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Close Pull Requests | ||
on: | ||
pull_request: | ||
types: [opened] | ||
jobs: | ||
close-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install GitHub CLI | ||
uses: heyValdemars/[email protected] | ||
with: | ||
gh-version: latest | ||
- name: Close PR with GH CLI | ||
run: | | ||
gh pr close "${{ github.event.pull_request.number }}" \ | ||
--repo ${{ github.repository }} \ | ||
--comment "Thank you for your interest in contributing to PEcAn documentation! | ||
This repository is automatically maintained and synchronized from the book_source/ directory of the [pecanproject/pecan](https://github.com/pecanproject/pecan) repository. | ||
Please submit your pull request there instead: | ||
👉 [pecanproject/pecan](https://github.com/pecanproject/pecan) | ||
We appreciate your effort and understanding!" \ | ||
--delete-branch |