I'm writing my own Docker Github Action and I need access to some Github environment variable, specifically to the GITHUB_WORKSPACE variable.
I assume the user has called the checkout@v2 action beforehand and in my action.yml the run section looks as follows
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ github.workspace }}
But I get the following error
Unrecognized named-value: 'github'. Located at position 1 within expression: github.workspace
How do I make the supposedly globally available Github environment variables accessible from my action?