Fix Gitea Actions checkout for subpath

This commit is contained in:
juvdiaz 2026-05-25 13:54:44 -06:00
parent f7d683c467
commit 8ddf71ad96
2 changed files with 10 additions and 4 deletions

View File

@ -11,9 +11,15 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
run: |
set -euo pipefail
find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +
git init
git remote add origin https://lab2025.duckdns.org/git/jv/my-homelab-configs.git
git fetch --prune origin +refs/heads/main:refs/remotes/origin/main +refs/tags/*:refs/tags/*
git checkout --force "${{ gitea.sha }}"
git config --global --add safe.directory "$PWD"
- name: Verify Debian runner guardrails
run: |

2
lab.sh
View File

@ -544,7 +544,7 @@ install_gitea_runner() {
;;
esac
for package in ca-certificates curl git python3; do
for package in ca-certificates curl git nodejs python3; do
if ! dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q "install ok installed"; then
missing_packages="$missing_packages $package"
fi