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: |