actions-toolkit/toolkit/shell.sh
2020-10-22 17:52:53 +05:30

22 lines
No EOL
345 B
Bash

#!/bin/sh
source /gh-toolkit/shell/logger.sh
source /gh-toolkit/shell/inputvars.sh
source /gh-toolkit/shell/envars.sh
source /gh-toolkit/shell/color-log.sh
gh_set_output() {
echo "::set-output name=${1}::${2}"
}
gh_mask_output() {
echo "::add-mask::${1}"
}
is_empty_var(){
if [ -z "$1" ]; then
echo "$2"
else
echo "$1"
fi
}