Close Subtree PRs #3017
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: Close Subtree PRs | |
on: | |
schedule: | |
- cron: '0 */12 * * *' | |
workflow_dispatch: | |
jobs: | |
close: | |
name: Close Subtree PRs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
- name: Install dependencies | |
run: composer install -vvv | |
- name: Close PRs | |
run: php tools/close-subtree-prs.php | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }} |