Skip to content

Commit

Permalink
new condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zlalvani committed May 16, 2024
1 parent fd39701 commit e8d7583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/bumpgen-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}'
Expand Down

0 comments on commit e8d7583

Please sign in to comment.