diff --git a/.github/actions/configure-manifest/action.yml b/.github/actions/configure-manifest/action.yml index 21571b27e..16b40f0dd 100644 --- a/.github/actions/configure-manifest/action.yml +++ b/.github/actions/configure-manifest/action.yml @@ -2,6 +2,8 @@ name: Configure Manifest inputs: manifest: required: true + store-association: + required: true publisher: required: true version: @@ -17,12 +19,18 @@ runs: shell: powershell run: | $manifestPath = "${{ inputs.manifest }}" - + $associationPath = "${{ inputs.store-association }}" + $manifest = [xml](Get-Content $manifestPath) + $association = [xml](Get-Content $associationPath) + $manifest.Package.Identity.Publisher = "${{ inputs.publisher }}" $manifest.Package.Identity.Version = [string](Get-Content "${{ inputs.version }}") - $manifest.Package.Properties.DisplayName = "${{ inputs.prefix }}" if ("${{ inputs.branch }}" -ne "master") { $manifest.Package.Properties.DisplayName = $manifest.Package.Properties.DisplayName + " (${{ inputs.branch }})" + $manifest.Package.Applications.Application.VisualElements.DisplayName = $manifest.Package.Properties.DisplayName + $manifest.Package.Applications.Application.Extensions.Extension.StartupTask.DisplayName = $manifest.Package.Properties.DisplayName + $association.StoreAssociation.ProductReservedInfo.ReservedNames.ReservedName = $manifest.Package.Properties.DisplayName } $manifest.Save($manifestPath) + $association.Save($associationPath) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c1e3a771..234896673 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -169,6 +169,7 @@ jobs: uses: ./.github/actions/configure-manifest with: manifest: EarTrumpet.Package/Package.appxmanifest + store-association: EarTrumpet.Package/Package.StoreAssociation.xml publisher: ${{ env.publisher }} branch: ${{ github.ref_name }} prefix: 'EarTrumpet' @@ -328,6 +329,7 @@ jobs: uses: ./.github/actions/configure-manifest with: manifest: EarTrumpet.Package/Package.appxmanifest + store-association: EarTrumpet.Package/Package.StoreAssociation.xml publisher: ${{ env.publisher }} branch: ${{ github.ref_name }} prefix: 'EarTrumpet' @@ -423,7 +425,8 @@ jobs: ( startsWith(github.ref, 'refs/heads/dev') || startsWith(github.ref, 'refs/heads/master') || - startsWith(github.ref, 'refs/heads/feature') + startsWith(github.ref, 'refs/heads/feature') || + startsWith(github.ref, 'refs/heads/rafael') ) steps: