Set the correct default workspace for the repo
This commit is contained in:
parent
aeee02d5ef
commit
2088b42807
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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'/;}"
|
||||||
|
|
Reference in a new issue