chore: update matrix-example.yml (#2752)
This commit is contained in:
12
.github/workflows/matrix-example.yml
vendored
12
.github/workflows/matrix-example.yml
vendored
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user