fix: bootstrap repository via temp clone into workspace
iperf3 static musl build / build-and-release (push) Failing after 19s
iperf3 static musl build / build-and-release (push) Failing after 19s
This commit is contained in:
@@ -27,10 +27,13 @@ jobs:
|
||||
GIT_SHA: ${{ gitea.sha }}
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
rm -rf "$GITHUB_WORKSPACE"
|
||||
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"
|
||||
workdir="$(pwd)"
|
||||
tmpdir="$(mktemp -d)"
|
||||
git clone --depth 1 "$REPO_URL/$REPO_NAME.git" "$tmpdir/repo"
|
||||
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
|
||||
id: meta
|
||||
|
||||
Reference in New Issue
Block a user