From 2f2f6cf099167fa7d7c6aba8fc0421327e181a5a Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 19 Jan 2026 23:04:02 -0700 Subject: [PATCH] chore: update matrix-example.yml (#2752) --- .github/workflows/matrix-example.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/matrix-example.yml b/.github/workflows/matrix-example.yml index 103ce720..107f1fb3 100644 --- a/.github/workflows/matrix-example.yml +++ b/.github/workflows/matrix-example.yml @@ -43,3 +43,15 @@ jobs: - name: Test run: | echo ${{ matrix.files }} + + conditional-job: + name: Run Conditional Job + runs-on: ubuntu-latest + needs: [changed-files] + if: contains(needs.changed-files.outputs.matrix, 'README.md') # Conditional check for README + steps: + - name: Checkout + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - name: Execute Conditional Logic + run: | + echo "README.md has been changed. Running conditional job."