Skip to content

Commit 86bc908

Browse files
Revert "feat: adding docs change validation step in reuseable CI (#390)"
This reverts commit e30a821.
1 parent 5843a59 commit 86bc908

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

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

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -321,44 +321,6 @@ jobs:
321321
splunk_version_list=$(echo '${{ steps.determine_splunk.outputs.matrixSplunk }}' | jq -r '.[].version')
322322
sc4s_version_list=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -r '.[].version')
323323
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"
324-
325-
validate-docs-change:
326-
runs-on: ubuntu-latest
327-
container:
328-
image: python:3.9
329-
outputs:
330-
status: ${{ steps.validate.outputs.status }}
331-
steps:
332-
- uses: actions/checkout@v4
333-
with:
334-
submodules: false
335-
persist-credentials: false
336-
- name: Installing requirements
337-
run: |
338-
pip install pip -U
339-
pip install mkdocs==1.6.1 mkdocs-material==9.6.9 poetry
340-
- name: validate
341-
id: validate
342-
run: |
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
361-
362324
fossa-scan:
363325
runs-on: ubuntu-latest
364326
steps:
@@ -2994,7 +2956,6 @@ jobs:
29942956
- run-ucc-modinput-tests
29952957
- run-ui-tests
29962958
- validate-pr-title
2997-
- enforce-docs-checks
29982959
runs-on: ubuntu-latest
29992960
env:
30002961
NEEDS: ${{ toJson(needs) }}
@@ -3012,11 +2973,6 @@ jobs:
30122973
echo "run-publish=false" >> "$GITHUB_OUTPUT"
30132974
echo "Publish conditions are not met."
30142975
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
30202976
30212977
publish:
30222978
if: ${{ !cancelled() && needs.pre-publish.outputs.run-publish == 'true' && (github.event_name == 'push' || needs.validate-custom-version.result == 'success') }}

0 commit comments

Comments
 (0)