Skip to content

Commit

Permalink
fix: mount volume for workflow info (#776)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
Ryan and mergify[bot] authored Sep 24, 2021
1 parent e82f17e commit 3c14548
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runner/run_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions pkg/runner/testdata/actions/docker-local/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
echo "Hello $1"
time=$(date)
echo ::set-output name=time::$time

echo "SOMEVAR=$1" >>$GITHUB_ENV
1 change: 1 addition & 0 deletions pkg/runner/testdata/local-action-dockerfile/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ jobs:
- uses: ./actions/docker-local
with:
who-to-greet: 'Mona the Octocat'
- run: '[[ "${{ env.SOMEVAR }}" == "Mona the Octocat" ]]'
- uses: ./localdockerimagetest_

0 comments on commit 3c14548

Please sign in to comment.