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:
hc-github-team-consul-core 2023-09-21 16:14:14 -04:00 committed by GitHub
parent ac8ca023ca
commit 8900d630de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -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"

View File

@ -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]

View File

@ -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]