From 95032c925fdd1eeb6929092efb403791f5d4b209 Mon Sep 17 00:00:00 2001 From: dizi Date: Thu, 24 Sep 2026 10:20:12 +0300 Subject: [PATCH] fix: use public Gitea checkout URL --- .gitea/workflows/ci.yml | 11 ++++++++--- .gitea/workflows/deploy.yml | 9 +++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e03f06a..5a2e177 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,7 +16,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@v4 + - name: Checkout exact commit + run: | + git init . + git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git + git fetch --depth=1 origin ${{ github.sha }} + git checkout --detach FETCH_HEAD - uses: actions/setup-go@v5 with: @@ -71,8 +76,8 @@ jobs: - name: Container logs if: failure() - run: docker compose logs --no-color --tail=200 + run: if [ -f compose.yaml ]; then docker compose logs --no-color --tail=200; fi - name: Stop local stack if: always() - run: docker compose --profile tests down -v --remove-orphans + run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5f83c6d..87735e5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,7 +17,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@v4 + - name: Checkout exact commit + run: | + git init . + git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git + git fetch --depth=1 origin ${{ github.sha }} + git checkout --detach FETCH_HEAD - uses: actions/setup-go@v5 with: @@ -56,7 +61,7 @@ jobs: - name: Stop release stack if: always() - run: docker compose --profile tests down -v --remove-orphans + run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi - name: Configure SSH run: |