-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Commit id fetching doesn't work if checked out to a subdirectory #232
Comments
@gottagofaster236 thank you for reporting this issue! The
I hope that above suggestion works good, if it does not, I look forward to a community provided PR to find a solution for this. |
Adding a "GITHUB_WORKSPACE" environment variable didn't change the current directory unfortunately |
@gottagofaster236 could you enable debugging log for GH action? I wonder if the verbose log could shed some light in why the code here does not pick the environment variable set. Another workaround would be to try setting the GITHUB_WORKSPACE at job level, that is:
or probably my suggestion is totally off because the runner is always going to setup and force the GITHUB_WORKSPACE env var hence defeating this suggestion :/ |
Here's the run with debugging log enabled
I think it can break other unrelated jobs so I would rather not do that |
@gottagofaster236 thank you for providing the verbose log, though I can't see why the suggested workaround does not work. Regarding fixing I look forward to see a community provided PR to fix this issue. Of course I'll try this as well but I am not making any promise. |
Here is a repro commit.
This uses vcpkg as a submodule and the repository is checked out to the "plugin" subdirectory.
The following is printed in this action:
That's because this
git status
command is run in/home/runner/work/RewardsTheater/RewardsTheater
which is indeed not a git repository—theplugin
subdirectory is.This is a regression: such an error wasn't occuring on 6fe6989.
With that commit, it instead runs (as expected)
The text was updated successfully, but these errors were encountered: