From 14dd4c8ee674f3944093cd594c3501fd688affe4 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Tue, 5 Nov 2024 23:43:18 +0800 Subject: [PATCH] fix checkou. --- .gitea/workflows/release_windows.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release_windows.yaml b/.gitea/workflows/release_windows.yaml index 4289ee0..85f3c98 100644 --- a/.gitea/workflows/release_windows.yaml +++ b/.gitea/workflows/release_windows.yaml @@ -10,7 +10,7 @@ jobs: steps: - name: Clone repository run: | - $branch = "${{ github.ref }}" -replace '^refs/heads/', '' + $branch = "${{ github.ref }}" -replace '^refs/tags/', '' git clone --depth 1 --branch=$branch https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git . git checkout ${{ github.sha }} - name: Build and deploy