chore: update matrix-example.yml (#2752)

This commit is contained in:
Tonye Jack
2026-01-19 23:04:02 -07:00
committed by GitHub
parent 8262acc559
commit 2f2f6cf099

View File

@@ -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."