Skip to content

Commit 471e245

Browse files
authored
ci: fix GitHub_Actions set-output is deprecated (#11265)
1 parent 955581f commit 471e245

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/github-actions/should-workflow-run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ for bazel_target in $affected_files ; do
2121
bazel query "$bazel_target"
2222
done
2323

24-
echo "::set-output name=bazel-targets::${bazel_targets[*]}"
25-
echo "::set-output name=run-workflow::false"
24+
echo "{bazel-targets}=${bazel_targets[*]}" >> $GITHUB_OUTPUT
25+
echo "{run-workflow}=false" >> $GITHUB_OUTPUT
2626

2727
if (( ${#bazel_targets[@]} == 0 )); then
2828
echo "No bazel targets found after checking the diff."
2929
exit 0
3030
fi
3131

3232
if [[ " ${bazel_targets[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then
33-
echo "::set-output name=run-workflow::true"
33+
echo "{run-workflow}=true" >> $GITHUB_OUTPUT
3434
echo "Bazel targets found: ${bazel_targets[*]}"
3535
exit 0
3636
fi
@@ -43,7 +43,7 @@ tests=$(bazel query \
4343
"kind(test, rdeps(//..., set(${bazel_targets[*]})))")
4444

4545
if [[ " ${tests[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then
46-
echo "::set-output name=run-workflow::true"
46+
echo "{run-workflow}=true" >> $GITHUB_OUTPUT
4747
echo "Test targets found: ${tests[*]}"
4848
exit 0
4949
fi

0 commit comments

Comments
 (0)