I need a workflow, where I want action to run on each PR against master. And I also want to run that same action when a push (direct commit not PR merge commit) happens in master.
Current configurations looks like this:
It makes those actions run twice i.e
- When PR is being created against master (that makes sense as I’m listening to on PR event)
- When that PR gets merged into master (I don’t want to re run the action this time as It’s already in passing state from PR)
I’m expecting action to not run twice, I want to run the action like this:
- When a PR gets opened against master, run the action.
- When a direct commit happens to master (again not on the PR merge commit as it will make the action to run twice).