diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bbb37a4..f5d5477d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,9 +33,7 @@ jobs: - name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll run: | - if (Test-Path -path "YimMenu-dev-${{github.sha}}.dll") { - DEL YimMenu-dev-${{github.sha}}.dll - } + del YimMenu-dev-*.dll ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll working-directory: build/Release/ diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0494b67e..7dba6f3e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -39,8 +39,8 @@ jobs: - name: Generate Build Info id: var run: | - echo "full_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + echo "full_sha=$(git rev-parse HEAD)" >> $env:GITHUB_OUTPUT + echo "short_sha=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT check_detections: runs-on: ubuntu-latest