Skip to content

Commit

Permalink
[main] Update AL-Go System Files from microsoft/AL-Go-PTE@main - aa12…
Browse files Browse the repository at this point in the history
…d5ac4df1db8e8849ac68aa1000260fa3b7f4
  • Loading branch information
Bertverbeek4PS committed Oct 8, 2024
1 parent 6a64e38 commit 34659bd
Show file tree
Hide file tree
Showing 24 changed files with 474 additions and 731 deletions.
6 changes: 3 additions & 3 deletions .AL-Go/cloudDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Write-Host -ForegroundColor Yellow @'

$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/Github-Helper.psm1' -folder $tmpFolder
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/AL-Go-Helper.ps1' -folder $tmpFolder
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/Packages.json' -folder $tmpFolder | Out-Null
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/Github-Helper.psm1' -folder $tmpFolder
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/AL-Go-Helper.ps1' -folder $tmpFolder
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/Packages.json' -folder $tmpFolder | Out-Null

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
6 changes: 3 additions & 3 deletions .AL-Go/localDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Write-Host -ForegroundColor Yellow @'

$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/Github-Helper.psm1' -folder $tmpFolder
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/AL-Go-Helper.ps1' -folder $tmpFolder
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.3/Packages.json' -folder $tmpFolder | Out-Null
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/Github-Helper.psm1' -folder $tmpFolder
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/AL-Go-Helper.ps1' -folder $tmpFolder
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.0/Packages.json' -folder $tmpFolder | Out-Null

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "PTE",
"templateUrl": "https://github.com/microsoft/AL-Go-PTE@main",
"templateSha": "72f3223b6a153cd1fae540f5d7388842e2f9ac1e"
"templateSha": "aa12d5ac4df1db8e8849ac68aa1000260fa3b7f4"
}
299 changes: 278 additions & 21 deletions .github/RELEASENOTES.copy.md

Large diffs are not rendered by default.

19 changes: 7 additions & 12 deletions .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,36 @@ jobs:
needs: [ ]
runs-on: [ windows-latest ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.0
with:
shell: powershell

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.0
with:
shell: powershell

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: powershell

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.0
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Add existing app
uses: microsoft/AL-Go-Actions/AddExistingApp@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/AddExistingApp@v6.0
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -84,7 +79,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
110 changes: 33 additions & 77 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,25 @@ jobs:
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.0
with:
shell: powershell

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
lfs: true

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.0
with:
shell: powershell

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: powershell
get: type, powerPlatformSolutionFolder
Expand All @@ -79,7 +74,7 @@ jobs:
- name: Determine Projects To Build
id: determineProjectsToBuild
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.0
with:
shell: powershell
maxBuildDepth: ${{ env.workflowDepth }}
Expand All @@ -92,23 +87,23 @@ jobs:
- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.0
with:
shell: powershell
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.0
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}

- name: Determine Delivery Targets
id: DetermineDeliveryTargets
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -118,7 +113,7 @@ jobs:

- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand All @@ -130,22 +125,17 @@ jobs:
needs: [ Initialization ]
runs-on: [ windows-latest ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: powershell
get: templateUrl

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go-Actions/CheckForUpdates@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.0
with:
shell: powershell
templateUrl: ${{ env.templateUrl }}
Expand All @@ -162,8 +152,8 @@ jobs:
uses: ./.github/workflows/_BuildALGoProject.yaml
secrets: inherit
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
shell: ${{ matrix.githubRunnerShell }}
runsOn: ${{ matrix.githubRunner }}
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
Expand All @@ -174,20 +164,6 @@ jobs:
signArtifacts: true
useArtifactCache: true

BuildPP:
needs: [ Initialization ]
if: (!failure()) && (!cancelled()) && needs.Initialization.outputs.powerPlatformSolutionFolder != ''
name: Build PowerPlatform Solution
uses: ./.github/workflows/_BuildPowerPlatformSolution.yaml
secrets: inherit
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
project: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }}
projectName: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}

DeployALDoc:
needs: [ Initialization, Build ]
if: (!cancelled()) && needs.Build.result == 'Success' && needs.Initialization.outputs.generateALDocArtifact == 1 && github.ref_name == 'main'
Expand All @@ -202,21 +178,16 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: powershell

Expand All @@ -225,7 +196,7 @@ jobs:
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0

- name: Build Reference Documentation
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.0
with:
shell: powershell
artifacts: '.artifacts'
Expand All @@ -241,8 +212,8 @@ jobs:
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

Deploy:
needs: [ Initialization, Build, BuildPP ]
if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0
needs: [ Initialization, Build ]
if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0
strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }}
runs-on: ${{ fromJson(matrix.os) }}
name: Deploy to ${{ matrix.environment }}
Expand All @@ -253,21 +224,16 @@ jobs:
name: ${{ matrix.environment }}
url: ${{ steps.Deploy.outputs.environmentUrl }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: ${{ matrix.shell }}
get: type,powerPlatformSolutionFolder
Expand All @@ -281,15 +247,15 @@ jobs:
- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.0
with:
shell: ${{ matrix.shell }}
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'

- name: Deploy to Business Central
id: Deploy
uses: microsoft/AL-Go-Actions/Deploy@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/Deploy@v6.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -301,7 +267,7 @@ jobs:

- name: Deploy to Power Platform
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -311,43 +277,38 @@ jobs:
deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }}

Deliver:
needs: [ Initialization, Build, BuildPP ]
if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]'
needs: [ Initialization, Build ]
if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]'
strategy:
matrix:
deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }}
fail-fast: false
runs-on: [ windows-latest ]
name: Deliver to ${{ matrix.deliveryTarget }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSettings@v6.0
with:
shell: powershell

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.0
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

- name: Deliver
uses: microsoft/AL-Go-Actions/Deliver@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/Deliver@v6.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -358,21 +319,16 @@ jobs:
artifacts: '.artifacts'

PostProcess:
needs: [ Initialization, Build, BuildPP, Deploy, Deliver, DeployALDoc ]
needs: [ Initialization, Build, Deploy, Deliver, DeployALDoc ]
if: (!cancelled())
runs-on: [ windows-latest ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@b1d94cdeafe4735a2dc05a7ad9320801dd43dde8 # v5.3
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
Loading

0 comments on commit 34659bd

Please sign in to comment.