Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 51867f4

Browse files
committedFeb 20, 2023
fixup! fixup! riotdocker-base: Split out build logic
1 parent c4a2c4a commit 51867f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎riotdocker-base/build.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ NORMAL="\e[0m"
1212
step() {
1313
COUNTER_SUBSTEP=0
1414
COUNTER_STEP=$(("$COUNTER_STEP" + 1))
15-
echo "::group::"
15+
if [ -n "${GITHUB_RUN_ID}" ]; then
16+
echo "::group::"
17+
fi
1618
printf "${BLUE}${BOLD}==>${NORMAL}${BOLD} Step %d:${NORMAL} %s\n" "$COUNTER_STEP" "$1"
1719
}
1820

@@ -24,7 +26,9 @@ endstep() {
2426

2527
substep() {
2628
COUNTER_SUBSTEP=$(("$COUNTER_SUBSTEP" + 1))
27-
echo "::group::"
29+
if [ -n "${GITHUB_RUN_ID}" ]; then
30+
echo "::group::"
31+
fi
2832
printf "${BLUE}${BOLD} -->${NORMAL}${BOLD} Step %d.%d:${NORMAL} %s\n" \
2933
"$COUNTER_STEP" "$COUNTER_SUBSTEP" "$1"
3034
}

0 commit comments

Comments
 (0)
Please sign in to comment.