diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b2c14d5..4d7db30 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -54,13 +54,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Git (bash) - shell: powershell + shell: cmd run: | - if (-not (Get-Command bash -ErrorAction SilentlyContinue)) { - winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements - $env:PATH = "C:\Program Files\Git\bin;$env:PATH" - [System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, 'Machine') - } + where bash >nul 2>&1 || winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements + echo C:\Program Files\Git\bin>> %GITHUB_PATH% - name: Compile (Flutter Windows) shell: bash