fix: checkout private gitea repo with action token
Some checks failed
Build and deploy demo app / deploy (push) Failing after 1s

This commit is contained in:
ningning 2026-06-26 12:06:49 +08:00
parent 18fdd9176a
commit e83e55a5f2

View File

@ -19,7 +19,7 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
set -eu set -eu
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" . git clone "http://x-access-token:${GITHUB_TOKEN}@gitea:3000/${GITHUB_REPOSITORY}.git" .
git checkout "$GITHUB_SHA" git checkout "$GITHUB_SHA"
- name: Show context - name: Show context