From b9fc714a1428a70122770597627d01d9ade6abad Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 19 Nov 2024 10:37:08 +0100 Subject: [PATCH] Update next.yml --- .github/workflows/next.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index f900fb9..d401f2f 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -62,8 +62,13 @@ jobs: - name: Get verCode from apk run: | java -jar fgo-vce.jar -s decrypt/stringliteral.json -av ${{ env.VERSION }} - if (Test-Path "${{ matrix.region }}.json") Remove-Item "${{ matrix.region }}.json" -Force - Rename-Item -Path "app.json" -NewName "${{ matrix.region }}.json" + $regionFile = "${{ matrix.region }}.json" + + if (Test-Path $regionFile) { + Remove-Item $regionFile -Force + } + + Rename-Item -Path "app.json" -NewName $regionFile - name: Upload app.json uses: EndBug/add-and-commit@v9 with: