name: composite-fail-with-output
on: push

jobs:
  test-for-output:
    runs-on: ubuntu-latest
    steps:
    - uses: https://data.forgejo.org/actions/checkout@v2
    - uses: ./actions/composite-fail-with-output
      id: composite-fail-with-output
      continue-on-error: true
    - run: |
        echo ${{steps.composite-fail-with-output.outputs.customoutput}}
        exit ${{steps.composite-fail-with-output.outputs.customoutput == 'my-customoutput-green' && '0' || '1'}}
