File tree 1 file changed +21
-1
lines changed
1 file changed +21
-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 :
@@ -336,8 +338,26 @@ jobs:
336
338
pip install pip -U
337
339
pip install mkdocs==1.6.1 mkdocs-material==9.6.9 poetry
338
340
- name : validate
341
+ id : validate
339
342
run : |
340
- poetry run mkdocs build --strict
343
+ if poetry run mkdocs build --strict; then
344
+ echo "status=success" >> "$GITHUB_OUTPUT"
345
+ echo "status :: success"
346
+ else
347
+ echo "status=failure" >> "$GITHUB_OUTPUT"
348
+ echo "status :: failure"
349
+ fi
350
+
351
+ enforce-docs-checks :
352
+ runs-on : ubuntu-latest
353
+ needs : validate-docs-change
354
+ if : github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
355
+ steps :
356
+ - name : Fail if validate-docs-change failed
357
+ run : |
358
+ if [ "${{ needs.validate-docs-change.outputs.status }}" == "failure" ]; then
359
+ exit 1
360
+ fi
341
361
342
362
fossa-scan :
343
363
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments