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 }}
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user