Skip to content

Close Subtree PRs #3021

Close Subtree PRs

Close Subtree PRs #3021

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 }}