summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/local-action-dockerfile/push.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/local-action-dockerfile/push.yml')
-rw-r--r--pkg/runner/testdata/local-action-dockerfile/push.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/runner/testdata/local-action-dockerfile/push.yml b/pkg/runner/testdata/local-action-dockerfile/push.yml
new file mode 100644
index 0000000..a4a5b06
--- /dev/null
+++ b/pkg/runner/testdata/local-action-dockerfile/push.yml
@@ -0,0 +1,27 @@
+name: local-action-dockerfile
+on: push
+defaults:
+ run:
+ shell: bash
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ./actions/docker-local
+ id: dockerlocal
+ with:
+ who-to-greet: 'Mona the Octocat'
+ - run: '[[ "${{ env.SOMEVAR }}" == "Mona the Octocat" ]]'
+ - run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1'
+ env:
+ SOMEVAR: 'Not Mona'
+ - run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "Mona the Octocat" ]]'
+ # Test if overriding args doesn't leak inputs
+ - uses: ./actions/docker-local-noargs
+ with:
+ args: ${{format('"{0}"', 'Mona is not the Octocat') }}
+ who-to-greet: 'Mona the Octocat'
+ - run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]'
+ - uses: ./localdockerimagetest_