Skip to content

Commit e912ba7

Browse files
chore: modified pre-publish step
1 parent 4cd10a5 commit e912ba7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/reusable-build-test-release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -2994,6 +2994,7 @@ jobs:
29942994
- run-ucc-modinput-tests
29952995
- run-ui-tests
29962996
- validate-pr-title
2997+
- enforce-docs-checks
29972998
runs-on: ubuntu-latest
29982999
env:
29993000
NEEDS: ${{ toJson(needs) }}
@@ -3011,6 +3012,11 @@ jobs:
30113012
echo "run-publish=false" >> "$GITHUB_OUTPUT"
30123013
echo "Publish conditions are not met."
30133014
fi
3015+
if [[ github.base_ref == 'main' && "${{ needs.enforce-docs-checks.result }}" != "success" ]]
3016+
then
3017+
echo " There are documentation changes that break mkdocs deploy. please check validate-docs-change step."
3018+
exit 1
3019+
fi
30143020
30153021
publish:
30163022
if: ${{ !cancelled() && needs.pre-publish.outputs.run-publish == 'true' && (github.event_name == 'push' || needs.validate-custom-version.result == 'success') }}

0 commit comments

Comments
 (0)