Skip to content

Commit c19acef

Browse files
committed
Only run workflow if changes were made in the docs/ folder
1 parent 0b9976a commit c19acef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
- name: Execute tests
4747
run: vendor/bin/phpunit
4848

49+
trigger-workflow:
50+
needs: test # This makes it wait for test job to complete
51+
runs-on: ubuntu-latest
52+
if: |
53+
success() &&
54+
github.ref == 'refs/heads/2.x' &&
55+
contains(github.event.head_commit.modified, 'docs/')
56+
steps:
4957
- name: Trigger site workflow
5058
run: |
5159
curl -L \

0 commit comments

Comments
 (0)