Skip to content

Commit

Permalink
gha matrix example
Browse files Browse the repository at this point in the history
  • Loading branch information
juttayaya committed Mar 19, 2024
1 parent 5db5365 commit 50dd51b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gha-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
-
name: Print type_x
run: |
echo "Summary: type_a key:${{ matrix.type_a }}" >> $GITHUB_STEP_SUMMARY
echo "Summary: key:${{ matrix.type_a }}" >> $GITHUB_STEP_SUMMARY
test_matrix_b:
runs-on: ubuntu-latest
Expand All @@ -25,4 +25,8 @@ jobs:
-
name: Print type_b
run: |
echo "Summary: type_b key:${{ matrix.type_b }}" >> $GITHUB_STEP_SUMMARY
if [[ "${{ matrix.type_b }}" == "type_b_01" ]]; then
echo "FAIL: key:${{ matrix.type_b }}" >> $GITHUB_STEP_SUMMARY
else
echo "Summary: key:${{ matrix.type_b }}" >> $GITHUB_STEP_SUMMARY
fi

0 comments on commit 50dd51b

Please sign in to comment.