modified: .gitea/actions/kubectl-setup/action.yaml
All checks were successful
/ build-docker-image (push) Successful in 10s

new file:   cloud-scripts/setup-limbo-actions.sh
This commit is contained in:
2025-11-22 17:33:12 +00:00
parent 6d10423125
commit 4106c3d5bb
2 changed files with 28 additions and 1 deletions

View File

@@ -39,7 +39,6 @@ runs:
fi
if [ "$ERROR" != 0 ]; then
echo "❌ ERROR code $ERROR"
exit "$ERROR"
fi
# end check arguments

View File

@@ -0,0 +1,28 @@
set -euo pipefail
echo "fetching actions."
# 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 -s "$dir" "${WORKSPACE}/.gitea/limbo_actions/$(basename "$dir")"
done