ci) use manual checkout for gitea actions
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 6m23s

This commit is contained in:
2026-02-20 20:41:12 -05:00
parent 982f0d89be
commit 19a62fce8d
2 changed files with 20 additions and 8 deletions

View File

@@ -15,10 +15,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://cloud.campbellwireless.net/git
fetch-depth: 0
env:
REPO_URL: https://cloud.campbellwireless.net/git/${{ github.repository }}.git
run: |
set -eux
git init .
git remote add origin "$REPO_URL"
auth="$(printf '%s' '${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}' | base64 | tr -d '\n')"
git config --local http.https://cloud.campbellwireless.net/.extraheader "AUTHORIZATION: basic $auth"
git fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
git checkout --detach "${{ github.sha }}"
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3