Closed
Description
When using a container to run the checkout, the variables ${{ GITHUB_WORKSPACE }}
and ${{ github.workspace }}
are different.
---
name: CI
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: ~
jobs:
test:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- uses: actions/checkout@v3
- run: |
echo ${{ github.workspace }}
echo $GITHUB_WORKSPACE
The documentation for github.workspace
says:
The default working directory on the runner for steps, and the default location of your repository when using the checkout action.
The documentation for GITHUB_WORKSPACE
says:
The default working directory on the runner for steps, and the default location of your repository when using the checkout action.
I believe they should be set to the same value.
Metadata
Metadata
Assignees
Labels
No labels