GitHub Actions running old Workflow file? #122045
-
Select Topic AreaQuestion BodyAre there scenarios where GitHub Actions runs an older version of a workflow, instead of the current version in a PR? Here's an example where this seems to be happening:
I've tried rerunning the jobs, and modifying the workflow file a few more times, and it seems to be making no difference. Is there a cache somewhere I should clear? I've tried deleting everything in https://github.com/KaTeX/KaTeX/actions/caches |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We have a similar issue. In the pull request, we have updated the workflow file, but the runner is using the old file. Furthermore, if you open a workflow run ➡ summary ➡ Workflow file, you can see a changed file with new code but in the workflow run you can't spot these changes it still runs the old file. However, the changes were applied when I ran the same workflow using dispatch action. It seems that PR GitHub uses old workflow files, but I have no idea why. |
Beta Was this translation helpful? Give feedback.
@edemaine ok, I found my issue. In that specific workflow file, I was using
pull_request_target
trigger instead ofpull_request
. This caused this behaviour I copy pasted it from the internet and didn't spot a difference to my other workflows. here is an article which describes differences. Well, it wasn't a bug but expected behaviour my bad was that I didn't spot the difference in the trigger name.