fix(ci): fetch source via Gitea archive API (avoid git auth)

This commit is contained in:
Andrew Emelyaneko
2026-11-02 15:09:21 +03:00
parent a33f097b91
commit af6e212eda
+9 -11
View File
@@ -15,14 +15,12 @@ jobs:
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
cat > "$HOME/.netrc" <<EOF
machine 10.8.0.52
login ${CI_TOKEN}
password x
EOF
chmod 600 "$HOME/.netrc"
git clone --depth 1 "http://10.8.0.52:8080/andrew/plagin_tokens.git" src
cd src
curl -fsSL -H "Authorization: token ${CI_TOKEN}" \
"http://10.8.0.52:8080/api/v1/repos/andrew/plagin_tokens/archive/main.tar.gz" \
-o repo.tar.gz
tar -xzf repo.tar.gz --strip-components=1
ls
git init -q && git checkout -b main 2>/dev/null || true
- name: Install Bun
run: |
@@ -34,13 +32,13 @@ jobs:
bun --version
- name: Install dependencies
working-directory: src/plagin_tokens
working-directory: plagin_tokens
run: bun install
- name: TypeScript type checking
working-directory: src/plagin_tokens
working-directory: plagin_tokens
run: bun run typecheck
- name: Run tests
working-directory: src/plagin_tokens
working-directory: plagin_tokens
run: bun run test