Skip to content

Auto-merge stale PRs #375

Auto-merge stale PRs

Auto-merge stale PRs #375

name: Auto-merge stale PRs
'on':
workflow_dispatch:
schedule:
# Every 12 hours
- cron: '0 */12 * * *'
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
- name: Use pnpm
run: corepack enable && pnpm --version
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Auto merge stale
run: pnpm run ci:auto-merge-stale
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}