88 pull_request :
99 merge_group :
1010 workflow_dispatch :
11+ schedule :
12+ # Run daily at 7:30 AM UTC
13+ - cron : ' 30 7 * * *'
1114
1215permissions :
1316 contents : read
@@ -118,8 +121,12 @@ jobs:
118121 name : integration-test-results
119122 path : jmx-metrics/build/reports/tests/integrationTest
120123
121- markdown-link-check :
122- uses : ./.github/workflows/reusable-markdown-link-check.yml
124+ link-check :
125+ # release branches are excluded to avoid unnecessary maintenance if external links break
126+ # (and also because the README.md might need update on release branches before the release
127+ # download has been published)
128+ if : " !startsWith(github.ref_name, 'release/')"
129+ uses : ./.github/workflows/reusable-link-check.yml
123130
124131 markdown-lint-check :
125132 uses : ./.github/workflows/reusable-markdown-lint.yml
@@ -142,7 +149,7 @@ jobs:
142149 # and so would not short-circuit if used in the second-last position
143150 name : publish-snapshots${{ (github.ref_name != 'main' || github.repository != 'open-telemetry/opentelemetry-java-contrib') && ' (skipped)' || '' }}
144151 needs :
145- # intentionally not blocking snapshot publishing on markdown- link-check or misspell-check
152+ # intentionally not blocking snapshot publishing on link-check or misspell-check
146153 - build
147154 - integration-test
148155 runs-on : ubuntu-latest
@@ -195,3 +202,31 @@ jobs:
195202 )
196203 )
197204 run: exit 1 # fail
205+
206+ workflow-notification :
207+ permissions :
208+ contents : read
209+ issues : write
210+ if : (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && always()
211+ needs :
212+ - build
213+ - test
214+ - integration-test
215+ - link-check
216+ - markdown-lint-check
217+ - misspell-check
218+ - shell-script-check
219+ - publish-snapshots
220+ uses : ./.github/workflows/reusable-workflow-notification.yml
221+ with :
222+ success : >-
223+ ${{
224+ needs.build.result == 'success' &&
225+ needs.test.result == 'success' &&
226+ needs.integration-test.result == 'success' &&
227+ needs.link-check.result == 'success' &&
228+ needs.markdown-lint-check.result == 'success' &&
229+ needs.misspell-check.result == 'success' &&
230+ needs.shell-script-check.result == 'success' &&
231+ needs.publish-snapshots.result == 'success'
232+ }}
0 commit comments