diff --git a/.gitea/workflows/main-image.yml b/.gitea/workflows/main-image.yml index 523619e..2f61a22 100644 --- a/.gitea/workflows/main-image.yml +++ b/.gitea/workflows/main-image.yml @@ -15,16 +15,10 @@ jobs: steps: - name: Checkout - 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 }}" + uses: https://git.campbellwireless.net/actions/checkout@v1 + with: + server-url: https://cloud.campbellwireless.net/git + fetch-depth: 0 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml index 589747f..46fd59b 100644 --- a/.gitea/workflows/pr-checks.yml +++ b/.gitea/workflows/pr-checks.yml @@ -9,16 +9,10 @@ jobs: steps: - name: Checkout - 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 }}" + uses: https://git.campbellwireless.net/actions/checkout@v1 + with: + server-url: https://cloud.campbellwireless.net/git + fetch-depth: 0 - name: Setup Bun uses: oven-sh/setup-bun@v2