Skip to content

Commit

Permalink
Only run workflow if changes were made in the docs/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Feb 12, 2025
1 parent 0b9976a commit c19acef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
- name: Execute tests
run: vendor/bin/phpunit

trigger-workflow:
needs: test # This makes it wait for test job to complete
runs-on: ubuntu-latest
if: |
success() &&
github.ref == 'refs/heads/2.x' &&
contains(github.event.head_commit.modified, 'docs/')
steps:
- name: Trigger site workflow
run: |
curl -L \
Expand Down

0 comments on commit c19acef

Please sign in to comment.