Skip to content

Commit

Permalink
Pipeline cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Nov 3, 2024
1 parent 9d640ad commit 25f7ce6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/actions/configure-manifest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Configure Manifest
inputs:
manifest:
required: true
store-association:
required: true
publisher:
required: true
version:
Expand All @@ -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)
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 25f7ce6

Please sign in to comment.