Skip to content

Contains Test

Contains Test #15

name: Contains Test
on:
workflow_dispatch:
jobs:
D:
runs-on: ubuntu-latest
steps:
- run: |
echo D
exit 1
A:
needs: [D]
runs-on: ubuntu-latest
if: ${{ failure() }}
env:
NEEDS: ${{ toJSON(needs) }}
CONDITION: ${{ contains(needs.*.result, 'success') }}
steps:
- run: |
echo A
echo "$NEEDS"
echo "$CONDITION"