github.com/nektos/act@v0.2.83/pkg/runner/testdata/uses-composite-check-for-input-in-if-uses/composite_action/action.yml (about) 1 name: "Test Composite Action" 2 description: "Test action uses composite" 3 4 inputs: 5 b: 6 default: true 7 b2: {} 8 9 runs: 10 using: "composite" 11 steps: 12 - uses: actions/github-script@v7 13 if: inputs.b == 'true' 14 with: 15 script: | 16 console.log(${{ tojson(inputs) }}) 17 if( ${{ tojson(inputs.b) }} != 'true' ) { 18 process.exit(-1); 19 } 20 github-token: noop 21 - uses: actions/github-script@v7 22 if: inputs.b != 'true' 23 with: 24 script: | 25 console.log(${{ tojson(inputs) }}) 26 if( ${{ tojson(inputs.b) }} == 'true' ) { 27 process.exit(-1); 28 } 29 github-token: noop 30 - uses: actions/github-script@v7 31 if: inputs.b2 == 'false' 32 with: 33 script: | 34 console.log(${{ tojson(inputs) }}) 35 if( ${{ tojson(inputs.b2) }} != 'false' ) { 36 process.exit(-1); 37 } 38 github-token: noop 39 - uses: actions/github-script@v7 40 if: inputs.b2 != 'false' 41 with: 42 script: | 43 console.log(${{ tojson(inputs) }}) 44 if( ${{ tojson(inputs.b2) }} == 'false' ) { 45 process.exit(-1); 46 } 47 github-token: noop