addnab / docker-run-action

MIT License
209 stars 93 forks source link

Mount volume main repository folder #4

Closed avelino closed 3 years ago

avelino commented 3 years ago

You must mount the repository volume

We don't usually use github actions to run standalone commands like echo

addnab commented 3 years ago

The README does have it documented here. Sorry if it wasn't clear. Feel free to suggest any improvements to the docs.

- uses: addnab/docker-run-action@v1
  with:
    image: docker:latest
    options: -v $GITHUB_WORKSPACE:/work -e ABC=123
    run: |
      echo "first line"
addnab commented 3 years ago

Updated the README with the typical use case and moved it to the top.