Skip to content

Commit d9094ca

Browse files
conflicated commits cherry-picked
1 parent 2884847 commit d9094ca

5 files changed

Lines changed: 51 additions & 75 deletions

File tree

.github/workflows/matrix-example.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,16 @@ jobs:
5353
- name: Test
5454
run: |
5555
echo ${{ matrix.files }}
56+
57+
conditional-job:
58+
name: Run Conditional Job
59+
runs-on: ubuntu-latest
60+
needs: [changed-files]
61+
if: contains(needs.changed-files.outputs.matrix, 'README.md') # Conditional check for README
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
65+
- name: Execute Conditional Logic
66+
run: |
67+
echo "README.md has been changed. Running conditional job."
68+

dist/index.js

Lines changed: 35 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/symlink-target.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Symlink target fixture.

test/symlink-to-target

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
symlink-target.txt

0 commit comments

Comments
 (0)