pull_request_target to trigger a workflow when a PR is opened and updated. In my testing, I’ve created a PR with
develop as the updated branch and
master as the branch I want to merge into.
Since I’m using
pull_request_target, my understanding is that Actions will use the workflow from the
master branch. I’m still building up my workflow bit by bit and fixing the bugs in it. However, what I’m finding is that if I commit the revised workflow back to the
master branch and then update the PR so that the action is triggered, it often seems like the previous version of the workflow is used and not the version I’ve just committed.
Am I doing something wrong or am I misunderstanding something about how Actions work?