summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/local-action-dockerfile/push.yml
blob: a4a5b06ecded46ab53c8b5aedd0cd1aa873bf2e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_