File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ jobs:
108108 - *shared
109109 - 'packages/node/**'
110110 - 'packages/node-integration-tests/**'
111+ any_code:
112+ - '!**/*.md'
111113
112114 outputs :
113115 commit_label : ' ${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
@@ -117,12 +119,14 @@ jobs:
117119 changed_node : ${{ steps.changed.outputs.node }}
118120 changed_browser : ${{ steps.changed.outputs.browser }}
119121 changed_browser_integration : ${{ steps.changed.outputs.browser_integration }}
122+ changed_any_code : ${{ steps.changed.outputs.any_code }}
120123
121124 job_install_deps :
122125 name : Install Dependencies
123126 needs : job_get_metadata
124127 runs-on : ubuntu-20.04
125128 timeout-minutes : 15
129+ if : needs.job_get_metadata.outputs.changed_any_code == 'true' || github.event_name != 'pull_request'
126130 steps :
127131 - name : ' Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
128132 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1717 pull_request :
1818 # The branches below must be a subset of the branches above
1919 branches : [master]
20+ paths :
21+ # When _only_ changing .md files, no need to run CodeQL analysis
22+ - ' !**/*.md'
2023 schedule :
2124 - cron : ' 40 3 * * 0'
2225
You can’t perform that action at this time.
0 commit comments