-
Notifications
You must be signed in to change notification settings - Fork 977
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_path }} makes no sense when action is run inside self-hosted custom container. #716
${{ github.action_path }} makes no sense when action is run inside self-hosted custom container. #716
Comments
Hi Sebastian,, |
See also #649 |
By not using ${{ github.action_path }} and instead hard-coding the location:
Ugly, quick solution. |
Hi Sebastian, I too found this same workaround in the meantime. |
seems like env variable GITHUB_ACTION_PATH set to correct path.
|
Here's a workaround that will allow you to use existing composite actions without modifying them. This should work on self-hosted runners using a BASH shell with gnu utils. Note that this includes a workaround for #691 as well with the step ID
Then on the job which uses a composite action:
|
Any chance of getting |
…ustom containers
Hey everyone, We created a PR fixing this issue 😊. |
clutching at straws: actions/runner#716 (comment)
For reference: actions/runner#716
4 years later and this is still broken |
Any update on this please? It's still an issue now (definitely for GHES at least). |
I hope this can be fixed soon |
@nikola-jokic not sure why this is closed... still a problem! |
There is a runner bug where the github.action_path and GITHUB_ACTION_PATH variables are not equal when running in a container on a self-hosted runner, with the former being set incorrectly. See actions/runner#716 for details. Fixes #1.
Describe the bug
${{ github.action_path }} points to a location in the host filesystem of the github runner host. Not to /__w/_actions/...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The shell script is found and executed, just like when doing this with a normal ubuntu-latest runner.
Runner Version and Platform
v2.273.4 on Linux.
OS of the machine running the runner? OSX/Windows/Linux/...
Linux.
What's not working?
The text was updated successfully, but these errors were encountered: