Create pr.yml

This commit is contained in:
tuna2134@コマリン親衛隊
2025-06-11 12:41:03 +09:00
committed by GitHub
parent cfff7368a7
commit 8db99eb734

31
.github/workflows/pr.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Renovatebot auto-merge
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
renovatebot:
runs-on: ubuntu-latest
if: github.actor == 'renovate[bot]'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- name: Build checking
run: |
pnpm install --frozen-lockfile
pnpm dlx @cloudflare/next-on-pages
- 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 }}