Skip to content

Commit 2f2f6cf

Browse files
authored
chore: update matrix-example.yml (#2752)
1 parent 8262acc commit 2f2f6cf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/matrix-example.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ jobs:
4343
- name: Test
4444
run: |
4545
echo ${{ matrix.files }}
46+
47+
conditional-job:
48+
name: Run Conditional Job
49+
runs-on: ubuntu-latest
50+
needs: [changed-files]
51+
if: contains(needs.changed-files.outputs.matrix, 'README.md') # Conditional check for README
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
55+
- name: Execute Conditional Logic
56+
run: |
57+
echo "README.md has been changed. Running conditional job."

0 commit comments

Comments
 (0)