fix: bootstrap repository via temp clone into workspace
iperf3 static musl build / build-and-release (push) Failing after 19s

This commit is contained in:
Hermes Agent
2026-05-07 23:09:40 +00:00
parent b414a03c43
commit e7c0e83b41
+7 -4
View File
@@ -27,10 +27,13 @@ jobs:
GIT_SHA: ${{ gitea.sha }} GIT_SHA: ${{ gitea.sha }}
run: | run: |
apk add --no-cache git apk add --no-cache git
rm -rf "$GITHUB_WORKSPACE" workdir="$(pwd)"
git clone --depth 1 "$REPO_URL/$REPO_NAME.git" "$GITHUB_WORKSPACE" tmpdir="$(mktemp -d)"
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "$GIT_SHA" git clone --depth 1 "$REPO_URL/$REPO_NAME.git" "$tmpdir/repo"
git -C "$GITHUB_WORKSPACE" checkout "$GIT_SHA" git -C "$tmpdir/repo" fetch --depth 1 origin "$GIT_SHA"
git -C "$tmpdir/repo" checkout "$GIT_SHA"
find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
cp -a "$tmpdir/repo"/. "$workdir"/
- name: Read version - name: Read version
id: meta id: meta