From 8db99eb734b36ff18244ab6821ab9dea8cba551c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tuna2134=40=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA?= =?UTF-8?q?=E8=A1=9B=E9=9A=8A?= Date: Wed, 11 Jun 2025 12:41:03 +0900 Subject: [PATCH] Create pr.yml --- .github/workflows/pr.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..cef45a0 --- /dev/null +++ b/.github/workflows/pr.yml @@ -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 }}