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