Setting: [main] CI/CD checkout 부분 수정
Some checks failed
baekjoon-bot-cicd / build_push_deploy (push) Failing after 14s

This commit is contained in:
sm4640
2026-01-15 18:35:33 +09:00
parent 3906de1803
commit cd59ebbd03

View File

@@ -8,7 +8,18 @@ jobs:
build_push_deploy: build_push_deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - name: Docker login
run: | run: |