Files
cecilia/.github/workflows/pr.yml
2025-10-28 03:07:28 +00:00

33 lines
728 B
YAML

name: Renovatebot auto-merge
on:
pull_request:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
renovatebot:
runs-on: ubuntu-latest
if: github.actor == 'renovate[bot]'
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
- name: Build checking
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Enable auto-merge for Renovate PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}