Skip to content

Commit

Permalink
Use matrix for shell value in PublishToEnvironment.yaml (#1106)
Browse files Browse the repository at this point in the history
This PR changes the "Publish To Environment" workflows of both the PTE
and AppSource templates.
With this fix, all steps of the "Deploy" job now use the deployment
matrix to determine the value of the `shell` property of each step.

Fixes #1101
  • Loading branch information
cegekaJG authored Jun 18, 2024
1 parent 1731160 commit c102036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Get Artifacts for deployment
uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@main
with:
shell: powershell
shell: ${{ matrix.shell }}
artifactsVersion: ${{ github.event.inputs.appVersion }}
artifactsFolder: '.artifacts'

Expand All @@ -179,7 +179,7 @@ jobs:
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
shell: powershell
shell: ${{ matrix.shell }}
environmentName: ${{ matrix.environment }}
artifactsFolder: '.artifacts'
deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }}
Expand All @@ -196,6 +196,6 @@ jobs:
id: PostProcess
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@main
with:
shell: powershell
shell: ${{ matrix.shell }}
eventId: "DO0097"
telemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Get Artifacts for deployment
uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@main
with:
shell: powershell
shell: ${{ matrix.shell }}
artifactsVersion: ${{ github.event.inputs.appVersion }}
artifactsFolder: '.artifacts'

Expand All @@ -179,7 +179,7 @@ jobs:
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
shell: powershell
shell: ${{ matrix.shell }}
environmentName: ${{ matrix.environment }}
artifactsFolder: '.artifacts'
deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }}
Expand All @@ -196,6 +196,6 @@ jobs:
id: PostProcess
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@main
with:
shell: powershell
shell: ${{ matrix.shell }}
eventId: "DO0097"
telemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}

0 comments on commit c102036

Please sign in to comment.