Skip to content

Commit

Permalink
ci(automerge): lable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Nov 1, 2023
1 parent 6c53850 commit 622898b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Automerge phnx47[bot]
name: Automerge phnx47[bot] sync

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

Expand All @@ -11,9 +12,9 @@ permissions:

jobs:
automerge:
name: Automerge phnx47[bot]
name: Automerge
runs-on: ubuntu-22.04
if: github.actor == 'phnx47-bot'
if: github.event.label.name == 'sync' && github.actor == 'phnx47-bot'
steps:
- name: Enable Pull Request Automerge
run: gh pr merge --merge --auto "1"
Expand Down

0 comments on commit 622898b

Please sign in to comment.