Skip to content

Commit d131439

Browse files
Merge branch 'develop' into chore/merge-main-to-develop
2 parents 9664cae + 8057ca3 commit d131439

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

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

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ jobs:
197197
case "${{ github.event_name }}" in
198198
"pull_request")
199199
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
203201
for test_type in "${TESTSET[@]}"; do
204202
if [[ "$labels" =~ $test_type ]]; then
205203
EXECUTE_LABELED["$test_type"]="true"
@@ -320,44 +318,6 @@ jobs:
320318
splunk_version_list=$(echo '${{ steps.determine_splunk.outputs.matrixSplunk }}' | jq -r '.[].version')
321319
sc4s_version_list=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -r '.[].version')
322320
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-
361321
fossa-scan:
362322
runs-on: ubuntu-latest
363323
steps:
@@ -2993,7 +2953,6 @@ jobs:
29932953
- run-ucc-modinput-tests
29942954
- run-ui-tests
29952955
- validate-pr-title
2996-
- enforce-docs-checks
29972956
runs-on: ubuntu-latest
29982957
env:
29992958
NEEDS: ${{ toJson(needs) }}
@@ -3011,11 +2970,6 @@ jobs:
30112970
echo "run-publish=false" >> "$GITHUB_OUTPUT"
30122971
echo "Publish conditions are not met."
30132972
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
30192973
30202974
publish:
30212975
if: ${{ !cancelled() && needs.pre-publish.outputs.run-publish == 'true' && (github.event_name == 'push' || needs.validate-custom-version.result == 'success') }}

0 commit comments

Comments
 (0)