diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 28f556e..49ff5a6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,7 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + set -euo pipefail + GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}" + git init -q . + git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git" + git fetch -q --depth 1 origin "$GITHUB_SHA" + git checkout -q "$GITHUB_SHA" - name: Login Harbor run: | @@ -46,7 +52,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout deploy config - uses: actions/checkout@v4 + run: | + set -euo pipefail + GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}" + git init -q . + git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git" + git fetch -q --depth 1 origin "$GITHUB_SHA" + git checkout -q "$GITHUB_SHA" - name: Deploy WordCloud run: |