diff --git a/.github/scripts/filter_changed_files_go_test.sh b/.github/scripts/filter_changed_files_go_test.sh index d85e85f5f..bdd0e3f77 100755 --- a/.github/scripts/filter_changed_files_go_test.sh +++ b/.github/scripts/filter_changed_files_go_test.sh @@ -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 \ No newline at end of file +echo "skip-ci=$SKIP_CI" >> "$GITHUB_OUTPUT" \ No newline at end of file diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index aabf6de53..abb910b29 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -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] diff --git a/.github/workflows/test-integrations.yml b/.github/workflows/test-integrations.yml index 822223432..a6159ccca 100644 --- a/.github/workflows/test-integrations.yml +++ b/.github/workflows/test-integrations.yml @@ -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]