Replies: 1 comment
|
💬 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. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Actions Runner
Discussion Details
Currently it is possible to add directories to
PATH(core.addPath("..."),echo "..." >> "$GITHUB_PATH", etc.) but there is no way to remove directories fromPATH. This makes it difficult for actions/reusable workflows to add toPATHfor their own use without affecting the system path of the calling/parent job.Some possible APIs/approaches:
The command to add a directory to
PATHreturns a ticket (a unique id/nonce/etc.) that the job can later pass to another command to remove that directory fromPATH:Advantages:
Disadvantage:
The runner maintains a
PATHvalue stack and there are commands to save/push values and restore/pop values:Advantages:
PATH, call a child action, then restore thePATHto undo changes made the child actionDisadvantages:
post:script, thepost:script may be affected by the parent job undoing changes made toPATHby the child action'smain:scriptAll reactions