-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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_WORKSPACE
and github.workspace
are different when running in container
#785
Comments
I'm facing the same issue using containers.
where |
Interesting observation - - run: |
echo ${{ github.workspace }}
MY_WORK_DIR=${{ github.workspace }}
echo "MY_WORK_DIR=$MY_WORK_DIR" >> $GITHUB_ENV
- run: |
echo $MY_WORK_DIR Output: + echo ${{ github.workspace }}
/opt/actions-runner/_work/<REPO_NAME>/<REPO_NAME>
+ echo $MY_WORK_DIR
/__w/<REPO_NAME>/<REPO_NAME> |
I don't think this is a checkout specific bug actions/runner#2058 |
Indeed, closing this and subscribing to the linked bug. |
I am getting same issue can someone help me on this? its killing my time |
What is "the linked bug"? You didn't link to another bug. |
I guess it was meant to be the bug linked by previous #785 (comment) that is this one actions/runner#2058 |
Very frustrating indeed... Running into actions/checkout#785
When using a container to run the checkout, the variables
${{ GITHUB_WORKSPACE }}
and${{ github.workspace }}
are different.The documentation for
github.workspace
says:The documentation for
GITHUB_WORKSPACE
says:I believe they should be set to the same value.
The text was updated successfully, but these errors were encountered: