Skip to content

Commit

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

on:
pull_request:
Expand All @@ -12,11 +12,11 @@ permissions:

jobs:
automerge:
name: Automerge
name: Enable Automerge
runs-on: ubuntu-22.04
if: github.event.label.name == 'sync' && github.actor == 'phnx47-bot'
if: github.actor == 'phnx47-bot' && contains(github.event.issue.labels.*.name, 'sync')
steps:
- name: Enable Pull Request Automerge
- name: Enable PR Automerge
run: gh pr merge --merge --auto "1"
env:
GH_TOKEN: ${{ secrets.GH_FULL_PAT }}

0 comments on commit 5482b6e

Please sign in to comment.