This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-examples.git

commit b0690b26ec742ab2ee52b92686a41846760506d4
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Thu Dec 1 11:24:55 2022 +0100

    Performs automerge only if both builds have passed
---
 .github/workflows/maven.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 3b22db9..67c97cf 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -46,6 +46,11 @@ jobs:
           java-version: ${{ matrix.java }}
       - name: Build with Maven on Java ${{ matrix.java }}
         run: mvn -B -V test --no-transfer-progress
+  automerge:
+    if: github.event_name == 'pull_request' && github.actor == 
'dependabot[bot]'
+    runs-on: ubuntu-latest
+    needs: [ build ]
+    steps:
       - name: Apply automerge label
         if: matrix.java == '17' && github.actor == 'dependabot[bot]'
         run: gh pr edit "$PR_URL" --add-label "automerge"

Reply via email to