From cd59ebbd034f6a7f19030342f3fc83c52a2d2d6b Mon Sep 17 00:00:00 2001 From: sm4640 Date: Thu, 15 Jan 2026 18:35:33 +0900 Subject: [PATCH] =?UTF-8?q?Setting:=20[main]=20CI/CD=20checkout=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cicd.yml b/.gitea/workflows/cicd.yml index f1b4530..d81007c 100644 --- a/.gitea/workflows/cicd.yml +++ b/.gitea/workflows/cicd.yml @@ -8,7 +8,18 @@ jobs: build_push_deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Manual checkout (supports /gitea subpath) + env: + ACTOR: ${{ github.actor }} + REPO: ${{ github.repository }} # owner/repo + SHA: ${{ github.sha }} + TOKEN: ${{ secrets.NKEY_PAT }} # repo read κΆŒν•œ μžˆλŠ” PAT + run: | + set -euo pipefail + git init . + git remote add origin "https://${ACTOR}:${TOKEN}@nkeystudy.site/gitea/${REPO}.git" + git fetch --no-tags --prune --depth=1 origin "${SHA}" + git checkout -q FETCH_HEAD - name: Docker login run: |