Skip to content

Commit

Permalink
trying
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning authored Oct 10, 2024
1 parent 025cc72 commit 5c5b251
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/dynamic-matrix-subvalues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:
matrix: "${{ fromJson(needs.prepare-1.outputs.repositories) }}"
fail-fast: false
max-parallel: 15
outputs:
is-failure: ${{ steps.is-failure.outputs.is-failed }}
steps:
- run: echo "${{ toJson(matrix) }}"
- name: Dump matrix context
Expand All @@ -129,9 +131,13 @@ jobs:
run: |
milliseconds=$(date +%s%N | cut -b1-13)
if (( milliseconds % 2 == 0 )); then
# exit 1
exit 0
exit 1
# exit 0
fi
- name: create output var if failure
id: is-failure
if: failure()
run: echo "is-failure=true" >> "$GITHUB_OUTPUT"
- name: upload status
if: always()
run: echo "${{ matrix.repositories.name }}, ${{ job.status }}" > ${{ matrix.repositories.name }}.txt
Expand Down Expand Up @@ -178,6 +184,12 @@ jobs:
- run: echo ${{ needs.prepare-1.outputs.repositories }}
- run: echo ${{ needs.prepare-2.outputs.repositories }}

if-failure:
needs: [prepare-1, run-matrix-1]
runs-on: ubuntu-latest
steps:
- run: echo "${{ needs.run-matrix-1.outputs.is-failure }}

# post:
# if: always()
# needs: run-matrix
Expand Down

0 comments on commit 5c5b251

Please sign in to comment.