mirror of
https://gitee.com/openharmony/third_party_libbpf
synced 2024-10-07 14:33:35 +00:00
3f22535d56
github action grouping is broken because we were outputing "::endgroup" where it needs "::endgroup::". This patch also added some addtional grouping around contianer setup phase, making output easier to read.
25 lines
525 B
Bash
25 lines
525 B
Bash
# $1 - start or end
|
|
# $2 - fold identifier, no spaces
|
|
# $3 - fold section description
|
|
travis_fold() {
|
|
local YELLOW='\033[1;33m'
|
|
local NOCOLOR='\033[0m'
|
|
if [ -z ${GITHUB_WORKFLOW+x} ]; then
|
|
echo travis_fold:$1:$2
|
|
if [ ! -z "${3:-}" ]; then
|
|
echo -e "${YELLOW}$3${NOCOLOR}"
|
|
fi
|
|
echo
|
|
else
|
|
if [ $1 = "start" ]; then
|
|
line="::group::$2"
|
|
if [ ! -z "${3:-}" ]; then
|
|
line="$line - ${YELLOW}$3${NOCOLOR}"
|
|
fi
|
|
else
|
|
line="::endgroup::"
|
|
fi
|
|
echo -e "$line"
|
|
fi
|
|
}
|