From c68fbe9d96358a77e2ad5dd1b0f7f47838e29bab Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Thu, 7 Dec 2023 14:36:21 +0800 Subject: [PATCH] Auto sync appxmanifest --- .github/workflows/PublishDistribution.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/PublishDistribution.yml b/.github/workflows/PublishDistribution.yml index e052ffed..f192bd4d 100644 --- a/.github/workflows/PublishDistribution.yml +++ b/.github/workflows/PublishDistribution.yml @@ -18,3 +18,11 @@ jobs: PURGE_URL: ${{ secrets.PURGE_URL }} run: | curl -X PATCH $PURGE_URL + + - name: Sync development appxmanifest + env: + VERSION: ${{ github.ref }} + shell: pwsh + run: | + $ver = ' Version="'+$Env:VERSION+'.0"' + $content = (Get-Content src/Snap.Hutao/Snap.Hutao/Package.development.appxmanifest -Encoding UTF8) -replace ' Version="([0-9\\.]+)"', $ver