Backport of when skip-ci is true do not trigger integration and go tests into release/1.16.x (#18956)
backport of commit 89e15e4cef0e67e18270e7310f8c7709deac73cc Co-authored-by: NiniOak <anita.akaeze@hashicorp.com>
This commit is contained in:
parent
ac8ca023ca
commit
8900d630de
|
@ -31,7 +31,7 @@ for file_to_check in "${files_to_check[@]}"; do
|
|||
echo -e $file_to_check
|
||||
SKIP_CI=false
|
||||
echo "Changes detected in non-documentation files - skip-ci: $SKIP_CI"
|
||||
export $SKIP_CI
|
||||
echo "skip-ci=$SKIP_CI" >> "$GITHUB_OUTPUT"
|
||||
exit 0 ## if file is outside of the skipped_directory exit script
|
||||
fi
|
||||
done
|
||||
|
@ -39,4 +39,4 @@ done
|
|||
echo -e "$files_to_check"
|
||||
SKIP_CI=true
|
||||
echo "Changes detected in only documentation files - skip-ci: $SKIP_CI"
|
||||
export $SKIP_CI
|
||||
echo "skip-ci=$SKIP_CI" >> "$GITHUB_OUTPUT"
|
|
@ -41,9 +41,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Get changed files
|
||||
id: read-files
|
||||
run: |
|
||||
./.github/scripts/filter_changed_files_go_test.sh
|
||||
echo "skip-ci=${SKIP_CI}" >> "${GITHUB_ENV}"
|
||||
run: ./.github/scripts/filter_changed_files_go_test.sh
|
||||
|
||||
setup:
|
||||
needs: [conditional-skip]
|
||||
|
|
|
@ -42,9 +42,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Get changed files
|
||||
id: read-files
|
||||
run: |
|
||||
./.github/scripts/filter_changed_files_go_test.sh
|
||||
echo "skip-ci=${SKIP_CI}" >> "${GITHUB_ENV}"
|
||||
run: ./.github/scripts/filter_changed_files_go_test.sh
|
||||
|
||||
setup:
|
||||
needs: [conditional-skip]
|
||||
|
|
Loading…
Reference in New Issue