-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub Action: avoid extra working directory prefix for wget #4232
Conversation
The whole shell step for wget is run with the working directory for the action; hence, drop the extra prefix to the --output-document parameter of the wget command.
we fixed this in system roles by using an absolute path for the working directory (for ansible-lint and ansible-test also) - linux-system-roles/kernel_settings#206 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you run this on a container it was not getting the correct working-directory
from GITHUB environment variables. GITHUB environment variables are only available for the RUNNER, not on a container in RUNNER. Please check the previous requirements by the changes. Please check the previous commits where there was no path and it was also not working correctly.
@bkaraoren I think you misunderstand what this PR does: the shell What you describe sounds like a problem in the detection of the default working directory in case the |
@ptoscano yep, that sounds also good. without providing any directory such as |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on given reviews, I think that is better not to touch it unless the change is also adding tests, especially for called via container approach. Without this, we will probably close the PRs.
We're going in circles here; this PR brings us back to the same state as before #4103. For myself and others using a GitHub action in a repository subdirectory, #4103 addressed a major issue (see #3938, now #4323). However, it also introduced problems for other users. In response, #4213 was merged, but this caused the action to become unusable again without resorting to hacky workarounds for the same use case. Instead of continuing in this cycle, we should take a step back and reevaluate the approach, as each "fix" solves one group's problem but introduces a new breaking bug for another. |
@tigattack @bkaraoren @ptoscano Please check #4340 which will fix this issue while also adding regression tests. Once merged this PR will be closed. I will release it later today, hopefully addressing these long standing issues. |
The whole shell step for wget is run with the working directory for the action; hence, drop the extra prefix to the --output-document parameter of the wget command.