github.com/nektos/act@v0.2.63/pkg/runner/testdata/local-action-dockerfile/push.yml (about) 1 name: local-action-dockerfile 2 on: push 3 defaults: 4 run: 5 shell: bash 6 7 jobs: 8 test: 9 runs-on: ubuntu-latest 10 steps: 11 - uses: actions/checkout@v2 12 - uses: ./actions/docker-local 13 id: dockerlocal 14 with: 15 who-to-greet: 'Mona the Octocat' 16 - run: '[[ "${{ env.SOMEVAR }}" == "Mona the Octocat" ]]' 17 - run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1' 18 env: 19 SOMEVAR: 'Not Mona' 20 - run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "Mona the Octocat" ]]' 21 # Test if overriding args doesn't leak inputs 22 - uses: ./actions/docker-local-noargs 23 with: 24 args: ${{format('"{0}"', 'Mona is not the Octocat') }} 25 who-to-greet: 'Mona the Octocat' 26 - run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]' 27 - uses: ./localdockerimagetest_