Skip to content

Instantly share code, notes, and snippets.

@tuna2134
Last active March 12, 2024 07:20
Show Gist options
  • Save tuna2134/2400755ca5f80078a96c59e811dead16 to your computer and use it in GitHub Desktop.
Save tuna2134/2400755ca5f80078a96c59e811dead16 to your computer and use it in GitHub Desktop.
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@v3
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
- name: Build checking
run: |
pnpm install --frozen-lockfile
corepack enable
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 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment