fix: pass gitea values through env in bootstrap step
iperf3 static musl build / build-and-release (push) Failing after 4s

This commit is contained in:
Hermes Agent
2026-05-07 23:08:46 +00:00
parent 1137a58843
commit b414a03c43
+7 -3
View File
@@ -21,12 +21,16 @@ jobs:
steps:
- name: Bootstrap workspace
shell: sh
env:
REPO_URL: ${{ gitea.server_url }}
REPO_NAME: ${{ gitea.repository }}
GIT_SHA: ${{ gitea.sha }}
run: |
apk add --no-cache git
rm -rf "$GITHUB_WORKSPACE"
git clone --depth 1 "${{ gitea.server_url }}/${{ gitea.repository }}.git" "$GITHUB_WORKSPACE"
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "${{ gitea.sha }}"
git -C "$GITHUB_WORKSPACE" checkout "${{ gitea.sha }}"
git clone --depth 1 "$REPO_URL/$REPO_NAME.git" "$GITHUB_WORKSPACE"
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "$GIT_SHA"
git -C "$GITHUB_WORKSPACE" checkout "$GIT_SHA"
- name: Read version
id: meta