Skip to content

Commit

Permalink
fixup! fixup! riotdocker-base: Split out build logic
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Feb 20, 2023
1 parent c4a2c4a commit 51867f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions riotdocker-base/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ NORMAL="\e[0m"
step() {
COUNTER_SUBSTEP=0
COUNTER_STEP=$(("$COUNTER_STEP" + 1))
echo "::group::"
if [ -n "${GITHUB_RUN_ID}" ]; then
echo "::group::"
fi
printf "${BLUE}${BOLD}==>${NORMAL}${BOLD} Step %d:${NORMAL} %s\n" "$COUNTER_STEP" "$1"
}

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

substep() {
COUNTER_SUBSTEP=$(("$COUNTER_SUBSTEP" + 1))
echo "::group::"
if [ -n "${GITHUB_RUN_ID}" ]; then
echo "::group::"
fi
printf "${BLUE}${BOLD} -->${NORMAL}${BOLD} Step %d.%d:${NORMAL} %s\n" \
"$COUNTER_STEP" "$COUNTER_SUBSTEP" "$1"
}
Expand Down

0 comments on commit 51867f4

Please sign in to comment.