fix ci.
Some checks failed
Windows CI / build (push) Failing after 2s
Build Applications / PullDocker (push) Successful in 4s
Build Applications / Build (push) Successful in 2m25s

This commit is contained in:
amass 2024-10-16 01:10:13 +08:00
parent 800369d7a3
commit f0cbe30768

View File

@ -8,7 +8,8 @@ jobs:
- name: Clone repository
run: |
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/${{ env.GITEA_REPOSITORY }}.git .
echo "git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/$env:GITEA_REPOSITORY.git ."
git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/$env:GITEA_REPOSITORY.git .
git checkout ${{ github.sha }}
env:
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}