From ddd55c0c58637fee377cc54da5753e099b460bf2 Mon Sep 17 00:00:00 2001 From: cneicy Date: Sat, 5 Sep 2026 06:46:44 +0800 Subject: [PATCH] fix: install git for catalog workflow jobs --- .gitea/workflows/package-hosts-verify.yml | 4 ++++ .gitea/workflows/workspace-validate.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.gitea/workflows/package-hosts-verify.yml b/.gitea/workflows/package-hosts-verify.yml index c2286dc..488bc22 100644 --- a/.gitea/workflows/package-hosts-verify.yml +++ b/.gitea/workflows/package-hosts-verify.yml @@ -13,6 +13,10 @@ jobs: shell: bash run: | set -euo pipefail + if ! command -v git >/dev/null 2>&1; then + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates git + fi ref="${{ gitea.sha }}" git init . git remote add origin "https://git.crash.work/ShrinkSDK/Workspace.git" diff --git a/.gitea/workflows/workspace-validate.yml b/.gitea/workflows/workspace-validate.yml index bdb6361..0503c7d 100644 --- a/.gitea/workflows/workspace-validate.yml +++ b/.gitea/workflows/workspace-validate.yml @@ -16,6 +16,10 @@ jobs: shell: bash run: | set -euo pipefail + if ! command -v git >/dev/null 2>&1; then + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates git + fi ref="${{ gitea.sha }}" git init . git remote add origin "https://git.crash.work/ShrinkSDK/Workspace.git"