From 32d87d8151ef4aacc027932bc5647aa3e6d34d90 Mon Sep 17 00:00:00 2001 From: tolelom <98kimsungmin@naver.com> Date: Thu, 19 Mar 2026 16:50:10 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20CI=EC=97=90=EC=84=9C=20actions/checkout?= =?UTF-8?q?=EB=8F=84=20=EC=A0=9C=EA=B1=B0=20=E2=80=94=20=EB=AA=A8=EB=93=A0?= =?UTF-8?q?=20GitHub=20Action=20=EC=9D=98=EC=A1=B4=20=EC=99=84=EC=A0=84=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea runner가 github.com clone에서 멈추는 문제. actions/checkout@v4도 git fetch로 직접 대체. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 951bea9..0fe999e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,13 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + git config --global --add safe.directory /workspace/A301/a301_client + git init + git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git + git fetch --depth=1 origin $GITHUB_SHA + git checkout $GITHUB_SHA - name: Setup Node.js run: | @@ -41,7 +47,13 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + git config --global --add safe.directory /workspace/A301/a301_client + git init + git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git + git fetch --depth=1 origin $GITHUB_SHA + git checkout $GITHUB_SHA - name: Login to Gitea Registry run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.tolelom.xyz -u "${{ github.actor }}" --password-stdin