From 410781307fa6f7ddcdcdf3b7b4cc309571e683d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 18 Nov 2024 10:32:10 +0100 Subject: [PATCH] checkout manually --- .gitea/workflows/build-image.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index 67a1ff3..33a87aa 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -14,11 +14,12 @@ jobs: build: runs-on: cth-ubuntu-latest steps: - - name: Check out repository - uses: https://github.com/actions/checkout@v4 - - name: Fetch lfs run: | + git init + git remote add origin gitea@example.com:org/repo.git + git fetch --depth 1 origin ${{ gitea.ref }} + git checkout FETCH_HEAD git lfs pull - name: update packages