Skip to content

Test success with output #3

Test success with output

Test success with output #3

Workflow file for this run

name: Test output
on:
push:
jobs:
matrix:
runs-on: ubuntu-24.04
name: Matrix
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
version:
- '1'
- '2'
- '3'
outputs:
success: ${{ steps.success.outputs.success }}
steps:
- id: success
run: echo "::set-output name=success::true"
error:
runs-on: ubuntu-24.04
name: Error
timeout-minutes: 15
steps:
- run: 'false'
success:
runs-on: ubuntu-24.04
name: Success
timeout-minutes: 15
if: always()
needs:
- matrix
- error
steps:
- run: echo ${{ needs.matrix.outputs.success }}
- run: '[[ "${{ needs.matrix.outputs.success-1 }}" == "true" ]]'
- run: '[[ "${{ needs.matrix.outputs.success-2 }}" == "true" ]]'
- run: '[[ "${{ needs.matrix.outputs.success-3 }}" == "true" ]]'
- run: '[[ "${{ needs.error.outputs.success }}" == "true" ]]'