From 471e245d7cd5232cbf4da226d5281acc670bea58 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 28 Nov 2022 17:07:36 +0100 Subject: [PATCH] ci: fix GitHub_Actions set-output is deprecated (#11265) --- scripts/github-actions/should-workflow-run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/github-actions/should-workflow-run.sh b/scripts/github-actions/should-workflow-run.sh index c866d6e4a718d..67568b6919f15 100755 --- a/scripts/github-actions/should-workflow-run.sh +++ b/scripts/github-actions/should-workflow-run.sh @@ -21,8 +21,8 @@ for bazel_target in $affected_files ; do bazel query "$bazel_target" done -echo "::set-output name=bazel-targets::${bazel_targets[*]}" -echo "::set-output name=run-workflow::false" +echo "{bazel-targets}=${bazel_targets[*]}" >> $GITHUB_OUTPUT +echo "{run-workflow}=false" >> $GITHUB_OUTPUT if (( ${#bazel_targets[@]} == 0 )); then echo "No bazel targets found after checking the diff." @@ -30,7 +30,7 @@ if (( ${#bazel_targets[@]} == 0 )); then fi if [[ " ${bazel_targets[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then - echo "::set-output name=run-workflow::true" + echo "{run-workflow}=true" >> $GITHUB_OUTPUT echo "Bazel targets found: ${bazel_targets[*]}" exit 0 fi @@ -43,7 +43,7 @@ tests=$(bazel query \ "kind(test, rdeps(//..., set(${bazel_targets[*]})))") if [[ " ${tests[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then - echo "::set-output name=run-workflow::true" + echo "{run-workflow}=true" >> $GITHUB_OUTPUT echo "Test targets found: ${tests[*]}" exit 0 fi