| 
1 |  | -inputs:  | 
2 |  | -  who-to-greet:  | 
3 |  | -    default: 'Mona the Octocat'  | 
4 |  | -runs:  | 
5 |  | -  using: composite  | 
6 |  | -  steps:  | 
7 |  | -  # Test if GITHUB_ACTION_PATH is set correctly before all steps  | 
8 |  | -  - run: stat $GITHUB_ACTION_PATH/push.yml  | 
9 |  | -    shell: bash  | 
10 |  | -  - run: stat $GITHUB_ACTION_PATH/action.yml  | 
11 |  | -    shell: bash  | 
12 |  | -  - run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]'  | 
13 |  | -    shell: bash  | 
14 |  | -  - uses: ./actions/docker-local  | 
15 |  | -    id: dockerlocal  | 
16 |  | -    with:  | 
17 |  | -      who-to-greet: ${{inputs.who-to-greet}}  | 
18 |  | -  - run: '[[ "${{ env.SOMEVAR }}" == "${{inputs.who-to-greet}}" ]]'  | 
19 |  | -    shell: bash  | 
20 |  | -  - run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1'  | 
21 |  | -    shell: bash  | 
22 |  | -    env:  | 
23 |  | -      SOMEVAR: 'Not Mona'  | 
24 |  | -  - run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "${{inputs.who-to-greet}}" ]]'  | 
25 |  | -    shell: bash  | 
26 |  | -  # Test if overriding args doesn't leak inputs  | 
27 |  | -  - uses: ./actions/docker-local-noargs  | 
28 |  | -    with:  | 
29 |  | -      args: ${{format('"{0}"', 'Mona is not the Octocat') }}  | 
30 |  | -      who-to-greet: ${{inputs.who-to-greet}}  | 
31 |  | -  - run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]'  | 
32 |  | -    shell: bash  | 
33 |  | -  - uses: ./localdockerimagetest_  | 
34 |  | -  # Also test a remote docker action here  | 
35 |  | -  - uses: actions/hello-world-docker-action@v1  | 
36 |  | -    with:  | 
37 |  | -      who-to-greet: 'Mona the Octocat'  | 
38 |  | -  # Test if GITHUB_ACTION_PATH is set correctly after all steps  | 
39 |  | -  - run: stat $GITHUB_ACTION_PATH/push.yml  | 
40 |  | -    shell: bash  | 
41 |  | -  - run: stat $GITHUB_ACTION_PATH/action.yml  | 
42 |  | -    shell: bash  | 
43 |  | -  - run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]'  | 
44 |  | -    shell: bash  | 
 | 1 | +inputs:  | 
 | 2 | +  who-to-greet:  | 
 | 3 | +    default: 'Mona the Octocat'  | 
 | 4 | +runs:  | 
 | 5 | +  using: composite  | 
 | 6 | +  steps:  | 
 | 7 | +  # Test if GITHUB_ACTION_PATH is set correctly before all steps  | 
 | 8 | +  - run: stat $GITHUB_ACTION_PATH/../push.yml  | 
 | 9 | +    shell: bash  | 
 | 10 | +  - run: stat $GITHUB_ACTION_PATH/action.yml  | 
 | 11 | +    shell: bash  | 
 | 12 | +  - run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]'  | 
 | 13 | +    shell: bash  | 
 | 14 | +  - uses: ./actions/docker-local  | 
 | 15 | +    id: dockerlocal  | 
 | 16 | +    with:  | 
 | 17 | +      who-to-greet: ${{inputs.who-to-greet}}  | 
 | 18 | +  - run: '[[ "${{ env.SOMEVAR }}" == "${{inputs.who-to-greet}}" ]]'  | 
 | 19 | +    shell: bash  | 
 | 20 | +  - run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1'  | 
 | 21 | +    shell: bash  | 
 | 22 | +    env:  | 
 | 23 | +      SOMEVAR: 'Not Mona'  | 
 | 24 | +  - run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "${{inputs.who-to-greet}}" ]]'  | 
 | 25 | +    shell: bash  | 
 | 26 | +  # Test if overriding args doesn't leak inputs  | 
 | 27 | +  - uses: ./actions/docker-local-noargs  | 
 | 28 | +    with:  | 
 | 29 | +      args: ${{format('"{0}"', 'Mona is not the Octocat') }}  | 
 | 30 | +      who-to-greet: ${{inputs.who-to-greet}}  | 
 | 31 | +  - run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]'  | 
 | 32 | +    shell: bash  | 
 | 33 | +  - uses: ./localdockerimagetest_  | 
 | 34 | +  # Also test a remote docker action here  | 
 | 35 | +  - uses: actions/hello-world-docker-action@v1  | 
 | 36 | +    with:  | 
 | 37 | +      who-to-greet: 'Mona the Octocat'  | 
 | 38 | +  # Test if GITHUB_ACTION_PATH is set correctly after all steps  | 
 | 39 | +  - run: stat $GITHUB_ACTION_PATH/../push.yml  | 
 | 40 | +    shell: bash  | 
 | 41 | +  - run: stat $GITHUB_ACTION_PATH/action.yml  | 
 | 42 | +    shell: bash  | 
 | 43 | +  - run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]'  | 
 | 44 | +    shell: bash  | 
0 commit comments