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.
-
|
You’re right — @main is almost never what people want in production pipelines. GitHub deliberately does not support @latest on actions (to avoid accidental breaking changes when a maintainer pushes a new tag).
Best solutions for “always get the latest stable”:
This way you get automatic updates without the risk of @main. |
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?
Product Feedback
What GitHub Actions topic or product is this about?
Workflow Configuration
Discussion Details
In #88510, someone asked how to use the latest version of an action. The OP accepted ‘use @main’ as the answer, but that doesn't really solve my problem – who really wants to base automated tasks on the main/trunk branch?
I also searched for other similar discussions, but couldn't find any – if there are any, please excuse the duplication!
In my case, I would like to always use the latest version/tag of an action container, such as ‘uses: $myCompany/$myRepository/actions/setup-php-project@latest’, instead of always manually incrementing my version, such as ‘uses: $myCompany/$myRepository/actions/setup-php-project@v0.3’.
In an internal company pipeline with many different repositories, it could simply be a pushed bug fix for the actions that should be used directly by all other repositories.
I may be on the wrong track to solve this problem (if so, please help me here) 🙂
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions