Say I have 2 branches, a feature branch and a develop branch.
There's no SLA on feature branch normally, meaning I can push broken code up to it all day long and no CI build should be triggered.
Then I open a PR into develop. I trigger a CI build action on pull_request: created. Let's say this build fails. By default I can't merge the PR, which is correct.
Now I want to push edits to feature branch to update the PR. I want these pushes to trigger a CI build (because we're now working inside an open PR). I don't want to allow the PR to proceed/be merged until these push-CIs pass.
How can I do that in GitHub Actions? I tried on pull_request: edited
but that didn't work for me.
I'm looking for the functional equivalent of:
on:
push:
if: inside_open_pr