From 329ee8c0741f46f0f732fef80fb54c1176d13009 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 14 Nov 2024 15:02:42 +0100 Subject: [PATCH] ci(automerge): do not run on draft PR - these jobs fail when PR is just a draft Signed-off-by: AtomicFS --- .github/workflows/bot--automerge.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bot--automerge.yml b/.github/workflows/bot--automerge.yml index 4eb09f05..1baf9a56 100644 --- a/.github/workflows/bot--automerge.yml +++ b/.github/workflows/bot--automerge.yml @@ -3,7 +3,8 @@ name: 'auto-merge' on: - - pull_request + pull_request: + types: [opened, synchronize, reopened, ready_for_review] permissions: read-all @@ -14,6 +15,7 @@ jobs: permissions: contents: write pull-requests: write + if: github.event.pull_request.draft == false steps: - name: Checkout uses: actions/checkout@v4 @@ -29,6 +31,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + if: github.event.pull_request.draft == false steps: - name: Checkout uses: actions/checkout@v4