Skip to content

Commit

Permalink
ci: add automerge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47-bot committed Nov 20, 2024
1 parent 0146afd commit cd64555
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto-merge

on:
pull_request:
types: [labeled]
branches:
- "main"

permissions:
pull-requests: write
contents: write

jobs:
automerge:
name: Enable auto-merge
runs-on: ubuntu-24.04
if: github.actor == 'phnx47-bot' && contains(github.event.pull_request.labels.*.name, 'sync')
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run command
run: gh pr merge -s --auto ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GH_FULL_PAT }}

0 comments on commit cd64555

Please sign in to comment.