File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,8 @@ jobs:
326
326
runs-on : ubuntu-latest
327
327
container :
328
328
image : python:3.9
329
+ outputs :
330
+ status : ${{ steps.validate.outputs.status }}
329
331
steps :
330
332
- uses : actions/checkout@v4
331
333
with :
@@ -337,7 +339,24 @@ jobs:
337
339
pip install mkdocs==1.6.1 mkdocs-material==9.6.9 poetry
338
340
- name : validate
339
341
run : |
340
- poetry run mkdocs build --strict
342
+ if poetry run mkdocs build --strict; then
343
+ echo "status=success" >> "$GITHUB_OUTPUT"
344
+ echo "status :: success"
345
+ else
346
+ echo "status=failure" >> "$GITHUB_OUTPUT"
347
+ echo "status :: failure"
348
+ fi
349
+
350
+ enforce-docs-checks :
351
+ runs-on : ubuntu-latest
352
+ needs : validate-docs-change
353
+ if : github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
354
+ steps :
355
+ - name : Fail if validate-docs-change failed
356
+ run : |
357
+ if [ "${{ needs.validate-docs-change.outputs.status }}" == "failure" ]; then
358
+ exit 1
359
+ fi
341
360
342
361
fossa-scan :
343
362
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments