summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/uses-composite-with-inputs/push.yml
blob: 9d0cc5b960174d42723551cc90b7e33da180d04b (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
28
29
30
31
32
name: push
on: push
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - id: set-output
      run: echo "::set-output name=var::value"
    - name: use simple composite action
      uses: ./uses-composite-with-inputs/action
      with:
        some: ${{ steps.set-output.outputs.var }}
    - name: use nested composite action
      uses: ./uses-composite-with-inputs/composite
      with:
        composite-input: value
    ###
    #
    # Remote composite test
    #
    - name: use remote composite action
      id: remote-composite
      uses: nektos/act-test-actions/composite@main
      with:
        input: ${{ steps.set-output.outputs.var }}
    - name: test remote composite output
      run: |
        echo "steps.remote-composite.outputs.output=${{ steps.remote-composite.outputs.output }}"
        [[ "${{ steps.remote-composite.outputs.output == 'value' }}" = "true" ]] || exit 1
    #
    ###