Set the correct default workspace for the repo

This commit is contained in:
Linas Daneliukas 2021-07-09 15:12:27 +03:00
parent aeee02d5ef
commit 2088b42807
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ inputs:
workdir: workdir:
description: 'Workdir for the container' description: 'Workdir for the container'
required: false required: false
default: ${{ github.workspace }} default: /github/workspace/${{ github.event.repository.name }}
run: run:
description: 'Run command in container' description: 'Run command in container'
required: false required: false

View file

@ -8,4 +8,4 @@ if [ ! -z $INPUT_DOCKER_NETWORK ];
then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK" then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK"
fi fi
exec docker run --workdir $INPUT_WORKDIR -v "/var/run/docker.sock:/var/run/docker.sock" -v "$GITHUB_WORKSPACE:$GITHUB_WORKSPACE" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "${INPUT_RUN//$'\n'/;}" exec docker run --workdir "$INPUT_WORKDIR" -v "/var/run/docker.sock:/var/run/docker.sock" -v "$RUNNER_WORKSPACE:/github/workspace" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "${INPUT_RUN//$'\n'/;}"