From 51a1638ccac49d0e75e9bbdec04b0c6660fe33ace7bd6b4a768b8319ba22bdc6 Mon Sep 17 00:00:00 2001 From: JohannesBOT Date: Thu, 28 May 2026 19:21:45 +0200 Subject: [PATCH] fix(ci): replace actions/checkout with manual git clone for SHA-256 repos Gitea uses SHA-256 object hashes; actions/checkout@v4 from GitHub only handles SHA-1 and fails to resolve the 64-char ref. Use git clone + git checkout directly instead. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 71267c6..a069469 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,7 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + run: | + git clone ${{ github.server_url }}/${{ github.repository }}.git . + git checkout ${{ github.sha }} - name: Login to Gitea Registry run: | @@ -28,7 +30,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + run: | + git clone ${{ github.server_url }}/${{ github.repository }}.git . + git checkout ${{ github.sha }} - name: Create deployment directory uses: appleboy/ssh-action@v1.0.3