Describe example with volume mount
The examples are a bit too brief: this adds some context. would have closed #28
This commit is contained in:
parent
3e77f186b7
commit
3331cf5e8e
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
|||
|
||||
#### Typical Use Case
|
||||
|
||||
Here we mount a volume under `/work` and specify an environment variable. This is the equivalent of `docker run --rm -v ${{ github.workspace }}:/work -e ABC=123 private-image:latest sh -c 'echo "Running script"; /work/run-script'.
|
||||
|
||||
```yaml
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2 # Required to mount the Github Workspace to a volume
|
||||
|
|
Reference in a new issue