@@ -197,9 +197,7 @@ jobs:
197
197
case "${{ github.event_name }}" in
198
198
"pull_request")
199
199
labels=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | jq -r '.[] | .name')
200
- if ${{ needs.check-docs-changes.outputs.docs-only == 'true' }}; then
201
- echo -e "\033[1;33m⚠️ Skipping tests as there are only documentation related changes ⚠️\033[0m"
202
- elif ${{ github.base_ref == 'main' }} && ${{ contains(github.event.pull_request.labels.*.name, 'use_labels') }}; then
200
+ if ${{ github.base_ref == 'main' }} && ${{ contains(github.event.pull_request.labels.*.name, 'use_labels') }}; then
203
201
for test_type in "${TESTSET[@]}"; do
204
202
if [[ "$labels" =~ $test_type ]]; then
205
203
EXECUTE_LABELED["$test_type"]="true"
@@ -320,44 +318,6 @@ jobs:
320
318
splunk_version_list=$(echo '${{ steps.determine_splunk.outputs.matrixSplunk }}' | jq -r '.[].version')
321
319
sc4s_version_list=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -r '.[].version')
322
320
echo -e "## Summary of Versions Used\n- **Splunk versions used:** (${splunk_version_list})\n- **SC4S versions used:** (${sc4s_version_list})\n- Browser: Chrome" >> "$GITHUB_STEP_SUMMARY"
323
-
324
- validate-docs-change :
325
- runs-on : ubuntu-latest
326
- container :
327
- image : python:3.9
328
- outputs :
329
- status : ${{ steps.validate.outputs.status }}
330
- steps :
331
- - uses : actions/checkout@v4
332
- with :
333
- submodules : false
334
- persist-credentials : false
335
- - name : Installing requirements
336
- run : |
337
- pip install pip -U
338
- pip install mkdocs==1.6.1 mkdocs-material==9.6.9 poetry
339
- - name : validate
340
- id : validate
341
- run : |
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
360
-
361
321
fossa-scan :
362
322
runs-on : ubuntu-latest
363
323
steps :
@@ -2993,7 +2953,6 @@ jobs:
2993
2953
- run-ucc-modinput-tests
2994
2954
- run-ui-tests
2995
2955
- validate-pr-title
2996
- - enforce-docs-checks
2997
2956
runs-on : ubuntu-latest
2998
2957
env :
2999
2958
NEEDS : ${{ toJson(needs) }}
@@ -3011,11 +2970,6 @@ jobs:
3011
2970
echo "run-publish=false" >> "$GITHUB_OUTPUT"
3012
2971
echo "Publish conditions are not met."
3013
2972
fi
3014
- if ${{ github.base_ref == 'main' }} && ${{ needs.enforce-docs-checks.result != 'success' }};
3015
- then
3016
- echo " There are documentation changes that break mkdocs deploy. please check validate-docs-change step."
3017
- exit 1
3018
- fi
3019
2973
3020
2974
publish :
3021
2975
if : ${{ !cancelled() && needs.pre-publish.outputs.run-publish == 'true' && (github.event_name == 'push' || needs.validate-custom-version.result == 'success') }}
0 commit comments