GitHub Actions ignores updated workflow in pull_request events #190060
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Two different things can cause your issue and they have nothing to do with caching at all lmfao. If the PR is from a fork, GitHub runs the workflow from your base branch on purpose. A fork can't be allowed to modify its own CI run or it could do anything with your repos secrets. So whatever is in the fork's workflow file is irrelevant. It always uses your base branch's version. If the PR is from the same repo and you're still seeing old logic, the most likely cause is that you updated the workflow on One other thing i would check is the Hope this answers your issue! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
Workflow Configuration
Discussion Details
Description
When updating a workflow file (e.g.
.github/workflows/pr-labels.yml), the new version is not consistently used in pull request events.Instead, GitHub Actions executes an older version of the workflow, even though the repository contains the updated configuration.
Observed Behavior
pull_request)Examples:
gh pr edit --labelruns even after changing to--add-labelactions/checkout@v4still runs after upgrading to@v5Expected Behavior
The latest workflow version should always be used after committing changes.
Impact
Notes
This behavior is not clearly documented and feels like:
Suggestion
Additional Context
This became especially problematic during Node.js 20 deprecation migration. Workarounds like using
pull_request_targetor pushing to the base branch are not intuitive and not documented clearly.Beta Was this translation helpful? Give feedback.
All reactions