We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8262acc commit 2f2f6cfCopy full SHA for 2f2f6cf
.github/workflows/matrix-example.yml
@@ -43,3 +43,15 @@ jobs:
43
- name: Test
44
run: |
45
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