From 50dd51baad5a9d72dcc4eced639e667912363985 Mon Sep 17 00:00:00 2001 From: juttayaya Date: Tue, 19 Mar 2024 12:27:40 -0400 Subject: [PATCH] gha matrix example --- .github/workflows/gha-matrix.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gha-matrix.yml b/.github/workflows/gha-matrix.yml index 970e8b1..4266605 100644 --- a/.github/workflows/gha-matrix.yml +++ b/.github/workflows/gha-matrix.yml @@ -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 @@ -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