diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 203664c..791c1d4 100755 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -82,6 +82,7 @@ func (rc *RunContext) GetBindsAndMounts() ([]string, map[string]string) { mounts := map[string]string{ "act-toolcache": "/toolcache", + name + "-env": ActPath, } if rc.Config.BindWorkdir { diff --git a/pkg/runner/testdata/actions/docker-local/entrypoint.sh b/pkg/runner/testdata/actions/docker-local/entrypoint.sh index e4cfd97..bff7aa7 100755 --- a/pkg/runner/testdata/actions/docker-local/entrypoint.sh +++ b/pkg/runner/testdata/actions/docker-local/entrypoint.sh @@ -3,3 +3,5 @@ echo "Hello $1" time=$(date) echo ::set-output name=time::$time + +echo "SOMEVAR=$1" >>$GITHUB_ENV diff --git a/pkg/runner/testdata/local-action-dockerfile/push.yml b/pkg/runner/testdata/local-action-dockerfile/push.yml index 3a76107..441b7f4 100644 --- a/pkg/runner/testdata/local-action-dockerfile/push.yml +++ b/pkg/runner/testdata/local-action-dockerfile/push.yml @@ -9,4 +9,5 @@ jobs: - uses: ./actions/docker-local with: who-to-greet: 'Mona the Octocat' + - run: '[[ "${{ env.SOMEVAR }}" == "Mona the Octocat" ]]' - uses: ./localdockerimagetest_