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:
Carl-Erik Kopseng 2021-11-09 09:06:24 +01:00 committed by GitHub
parent 3e77f186b7
commit 3331cf5e8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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