.
Some checks failed
Casa Home Assistant CI/CD Pipeline (testing) / build (push) Failing after 12s

This commit is contained in:
2025-11-22 17:05:29 +00:00
parent cf650391c4
commit baa7cbe7b3
2 changed files with 37 additions and 6 deletions

View File

@@ -0,0 +1,27 @@
#/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