Skip to content

Commit 450dad0

Browse files
fix: skip running tests on changes in validate-deploy-docs.yaml (#416)
### Description - Since we now have a new validate-deploy-docs.yaml workflow for documentation, we are including it in the list of files considered as documentation-only changes. This ensures that test cases will not be triggered when only documentation workflows are modified. ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [ ] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done for test addon repo https://github.com/splunk/test-addonfactory-repo/actions/runs/15874408448/job/44758591172?pr=349
1 parent eab87ea commit 450dad0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ jobs:
133133
- name: Fetch all refs
134134
run: git fetch --prune --unshallow
135135

136-
- name: Check if the changes are only in docs/*, mkdocs.yml, or .github/workflows/docs.yml
136+
- name: Check if the changes are only in docs/*, mkdocs.yml or .github/workflows/validate-deploy-docs.yaml
137137
id: check
138138
run: |
139139
set -o xtrace
140140
# List all files modified in the commit or PR
141141
changed_files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
142142
143-
# Check if any of the changed files are not in docs/*, mkdocs.yml, or .github/workflows/docs.yml
144-
if echo "$changed_files" | grep -vqE '^(docs/|mkdocs.yml|.github/workflows/docs.yml)'; then
143+
# Check if any of the changed files are not in docs/*, mkdocs.yml, or .github/workflows/validate-deploy-docs.yaml
144+
if echo "$changed_files" | grep -vqE '^(docs/|mkdocs.yml|.github/workflows/validate-deploy-docs.yaml)'; then
145145
echo "docs-only=false" >> "$GITHUB_OUTPUT"
146146
else
147147
echo "Only documentation changes found."

0 commit comments

Comments
 (0)