diff --git a/.gitea/workflows/beta.yml b/.gitea/workflows/beta.yml index 3d6284c..067aacc 100644 --- a/.gitea/workflows/beta.yml +++ b/.gitea/workflows/beta.yml @@ -23,7 +23,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Set build number run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index fac245f..3a3e743 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -23,7 +23,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Verify ASC secrets run: | diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 63b6471..23c40ca 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -18,7 +18,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Run unit tests run: |