From 1137a588435d95f8372cca8f02b93cc898c05a49 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 7 May 2026 23:07:48 +0000 Subject: [PATCH] fix: avoid actions checkout and clone repo directly --- .gitea/workflows/iperf3.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/iperf3.yml b/.gitea/workflows/iperf3.yml index 4c104c3..7460683 100644 --- a/.gitea/workflows/iperf3.yml +++ b/.gitea/workflows/iperf3.yml @@ -19,12 +19,19 @@ jobs: runs-on: alpine-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Bootstrap workspace + shell: sh + 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 }}" - name: Read version id: meta shell: sh + working-directory: ${{ gitea.workspace }} run: | version="$(tr -d ' \n\r' < versions/iperf3.version)" artifact="iperf3-${version}-linux-amd64-musl-static" @@ -33,6 +40,7 @@ jobs: - name: Build static iperf3 shell: sh + working-directory: ${{ gitea.workspace }} run: | chmod +x scripts/build_iperf3.sh ./scripts/build_iperf3.sh "${{ steps.meta.outputs.version }}" "$PWD/dist" @@ -46,6 +54,7 @@ jobs: REPO_NAME: static-musl-builds VERSION: ${{ steps.meta.outputs.version }} TARGET_SHA: ${{ gitea.sha }} + working-directory: ${{ gitea.workspace }} run: | python3 scripts/publish_release.py \ "dist/${{ steps.meta.outputs.artifact }}" \