From 01041ea173f4eb6286b7cb757c24e2b971928373 Mon Sep 17 00:00:00 2001 From: Chintan Radia Date: Sat, 19 Mar 2022 12:51:03 +0530 Subject: [PATCH] Fixes #1081 skip auto run pr merge in main branch --- .github/workflows/github-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index c3e84b7e575..84f7616444c 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -229,7 +229,7 @@ jobs: pull-requests: write contents: write runs-on: ubuntu-latest - if: ${{ github.repository == 'jhipster/jhipster-lite' && github.event.pull_request.user.login == 'dependabot[bot]' }} + if: ${{ github.repository == 'jhipster/jhipster-lite' && github.ref != 'refs/heads/main' && github.event.pull_request.user.login == 'dependabot[bot]' }} steps: - name: Dependabot metadata id: dependabot-metadata