Skip to content

Commit

Permalink
ci(automerge): do not run on draft PR
Browse files Browse the repository at this point in the history
- these jobs fail when PR is just a draft

Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 14, 2024
1 parent fd3d412 commit 329ee8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/bot--automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
name: 'auto-merge'

on:
- pull_request
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

permissions: read-all

Expand 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
Expand All @@ -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
Expand Down

0 comments on commit 329ee8c

Please sign in to comment.