Skip to content

Commit d7463b6

Browse files
committed
ci(automerge): do not run on draft PR
- these jobs fail when PR is just a draft Signed-off-by: AtomicFS <[email protected]>
1 parent 77759c3 commit d7463b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/bot--automerge.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
name: 'auto-merge'
44

55
on:
6-
- pull_request
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
78

89
permissions: read-all
910

@@ -14,6 +15,7 @@ jobs:
1415
permissions:
1516
contents: write
1617
pull-requests: write
18+
if: github.event.pull_request.draft == false
1719
steps:
1820
- name: Checkout
1921
uses: actions/checkout@v4
@@ -29,6 +31,7 @@ jobs:
2931
runs-on: ubuntu-latest
3032
permissions:
3133
pull-requests: write
34+
if: github.event.pull_request.draft == false
3235
steps:
3336
- name: Checkout
3437
uses: actions/checkout@v4

0 commit comments

Comments
 (0)