From e8d7583f82075bb400cbdbdff7cb7d3b76bc257d Mon Sep 17 00:00:00 2001 From: Zaran Lalvani Date: Thu, 16 May 2024 16:38:03 -0400 Subject: [PATCH] new condition --- .github/workflows/bumpgen-core.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bumpgen-core.yml b/.github/workflows/bumpgen-core.yml index b7d64e1..2e16132 100644 --- a/.github/workflows/bumpgen-core.yml +++ b/.github/workflows/bumpgen-core.yml @@ -15,7 +15,8 @@ jobs: runs-on: ubuntu-latest # Need to run on all commits on PRs opened by dependabot except those committed by bumpgen # This might not work - if: ${{ github.actor == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen') }} + if: ${{ (github.event.pull_request.user.login == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen')) && github.event.pull_request.commits[0].author.username != 'github-actions[bot]'}} + # if: ${{ github.actor == 'dependabot[bot]' || contains( github.event.pull_request.labels.*.name, 'run bumpgen') }} steps: - name: Print github obj run: echo '${{ toJson(github) }}'