Skip to content

another test of pr close workflow #5

another test of pr close workflow

another test of pr close workflow #5

Workflow file for this run

---
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! \n This repository is automatically maintained and synchronized from the book_source/ directory of the [pecanproject/pecan](https://github.com/pecanproject/pecan) repository. \n Please submit your pull request there instead: \n 👉 [pecanproject/pecan](https://github.com/pecanproject/pecan) \n We appreciate your effort and understanding!" \
--delete-branch