Skip to content

Commit

Permalink
[ci] Removing unneeded {}
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Dec 2, 2022
1 parent b269466 commit b1f639b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/github-actions/should-workflow-run.sh
Expand Up @@ -21,16 +21,16 @@ for bazel_target in $affected_files ; do
bazel query "$bazel_target"
done

echo "{bazel-targets}=${bazel_targets[*]}" >> $GITHUB_OUTPUT
echo "{run-workflow}=false" >> $GITHUB_OUTPUT
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."
exit 0
fi

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

if [[ " ${tests[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then
echo "{run-workflow}=true" >> $GITHUB_OUTPUT
echo "run-workflow=true" >> $GITHUB_OUTPUT
echo "Test targets found: ${tests[*]}"
exit 0
fi

0 comments on commit b1f639b

Please sign in to comment.