Some checks failed
Casa Home Assistant CI/CD Pipeline (testing) / build (push) Failing after 12s
27 lines
622 B
Bash
27 lines
622 B
Bash
#/bin/bash
|
|
set -euo pipefail
|
|
|
|
# check arguments
|
|
ERROR=0
|
|
|
|
if [ -z "${RUNNER_TEMP}" ]; then
|
|
echo "❌ ERROR: missing env RUNNER_TEMP"
|
|
$ERROR=1
|
|
fi
|
|
|
|
if [ -z "${WORKSPACE}" ]; then
|
|
echo "❌ ERROR: missing env WORKSPACE"
|
|
$ERROR=1
|
|
fi
|
|
|
|
if [ "$ERROR" != 0 ]; then
|
|
exit "$ERROR"
|
|
fi
|
|
# end check arguments
|
|
mkdir -p ${RUNNER_TEMP}/gitea_src
|
|
mkdir -p ${WORKSPACE}/.gitea/limbo_actions
|
|
git clone -b main --depth=1 https://git.limbosolutions.com/kb/gitea ${RUNNER_TEMP}/gitea_src
|
|
|
|
for dir in ${RUNNER_TEMP}/gitea_src/.gitea/actions/*; do
|
|
ln -sf "$dir" "${RUNNER_TEMP}/.gitea/limbo_actions/$(basename "$dir")"
|
|
done |