更新工作流
Signed-off-by: zhao <zj18139624826@gmail.com>
This commit is contained in:
parent
e69731c668
commit
6076d359fc
28
build.sh
Normal file
28
build.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash -e
|
||||
export RED_COLOR='\e[1;31m'
|
||||
export GREEN_COLOR='\e[1;32m'
|
||||
export YELLOW_COLOR='\e[1;33m'
|
||||
export BLUE_COLOR='\e[1;34m'
|
||||
export PINK_COLOR='\e[1;35m'
|
||||
export SHAN='\e[1;33;5m'
|
||||
export RES='\e[0m'
|
||||
|
||||
GROUP=
|
||||
group() {
|
||||
endgroup
|
||||
echo "::group:: $1"
|
||||
GROUP=1
|
||||
}
|
||||
endgroup() {
|
||||
if [ -n "$GROUP" ]; then
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
GROUP=
|
||||
}
|
||||
|
||||
# check
|
||||
if [ "$(whoami)" != "zhiern" ] && [ -z "$git_name" ] && [ -z "$git_password" ]; then
|
||||
echo -e "\n${RED_COLOR} Not authorized. Execute the following command to provide authorization information:${RES}\n"
|
||||
echo -e "${BLUE_COLOR} export git_name=your_username git_password=your_password${RES}\n"
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user