Skip to content

Commit

Permalink
[main] Update AL-Go System Files from freddydk/AL-Go@thisbuild - f854…
Browse files Browse the repository at this point in the history
…60e3c1e06f89ef4faf2ee1c6f0fd2e790314
  • Loading branch information
freddydk committed Dec 28, 2024
1 parent e341ab8 commit 8b4df09
Show file tree
Hide file tree
Showing 28 changed files with 217 additions and 285 deletions.
4 changes: 2 additions & 2 deletions .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "PTE",
"templateUrl": "https://github.com/freddydk/AL-Go@partial",
"templateUrl": "https://github.com/freddydk/AL-Go@thisbuild",
"CICDPushBranches": [
"main",
"release/*",
Expand All @@ -19,6 +19,6 @@
"gitHubRunner": "windows-latest",
"githubRunnerShell": "pwsh",
"generateDependencyArtifact": true,
"templateSha": "6ce000758f0c8cb3d5b163e7d9c5c69acf1a4ae5",
"templateSha": "f85460e3c1e06f89ef4faf2ee1c6f0fd2e790314",
"RepoVersion": "1.0"
}
12 changes: 6 additions & 6 deletions .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: [ ubuntu-latest ]
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild
with:
shell: pwsh

Expand All @@ -50,26 +50,26 @@ jobs:

- name: Initialize the workflow
id: init
uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial
uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild
with:
shell: pwsh

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Add existing app
uses: freddydk/AL-Go/Actions/AddExistingApp@partial
uses: freddydk/AL-Go/Actions/AddExistingApp@thisbuild
with:
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -79,7 +79,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
69 changes: 27 additions & 42 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: ' CI/CD'


on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -40,16 +39,14 @@ jobs:
githubRunner: ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
skippedProjects: ${{ steps.determineProjectsToBuild.outputs.SkippedProjectsJson }}
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }}
baselineWorkflowSHA: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowSHA }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild
with:
shell: pwsh

Expand All @@ -60,21 +57,21 @@ jobs:

- name: Initialize the workflow
id: init
uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial
uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild
with:
shell: pwsh

- name: Read settings
id: ReadSettings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh
get: type,powerPlatformSolutionFolder,useGitSubmodules

- name: Read submodules token
id: ReadSubmodulesToken
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -92,14 +89,14 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"
- name: Determine Projects To Build
id: determineProjectsToBuild
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild
with:
shell: pwsh
maxBuildDepth: ${{ env.workflowDepth }}
publishSkippedProjectArtifacts: 'true'

- name: Determine PowerPlatform Solution Folder
id: DeterminePowerPlatformSolutionFolder
Expand All @@ -109,23 +106,23 @@ jobs:
- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@partial
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@thisbuild
with:
shell: pwsh
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}

- name: Determine Delivery Targets
id: DetermineDeliveryTargets
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@partial
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@thisbuild
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -135,7 +132,7 @@ jobs:

- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@partial
uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@thisbuild
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand All @@ -151,13 +148,13 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh
get: templateUrl

- name: Check for updates to AL-Go system files
uses: freddydk/AL-Go/Actions/CheckForUpdates@partial
uses: freddydk/AL-Go/Actions/CheckForUpdates@thisbuild
with:
shell: pwsh
templateUrl: ${{ env.templateUrl }}
Expand All @@ -179,13 +176,9 @@ jobs:
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }}
signArtifacts: true
useArtifactCache: true

Expand All @@ -205,13 +198,9 @@ jobs:
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }}
signArtifacts: true
useArtifactCache: true

Expand All @@ -231,13 +220,9 @@ jobs:
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }}
signArtifacts: true
useArtifactCache: true

Expand All @@ -264,7 +249,7 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh

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

- name: Build Reference Documentation
uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@partial
uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@thisbuild
with:
shell: pwsh
artifacts: '.artifacts'
Expand Down Expand Up @@ -310,7 +295,7 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: ${{ matrix.shell }}
get: type,powerPlatformSolutionFolder
Expand All @@ -324,15 +309,15 @@ jobs:
- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
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: freddydk/AL-Go/Actions/Deploy@partial
uses: freddydk/AL-Go/Actions/Deploy@thisbuild
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -344,7 +329,7 @@ jobs:

- name: Deploy to Power Platform
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
uses: freddydk/AL-Go/Actions/DeployPowerPlatform@partial
uses: freddydk/AL-Go/Actions/DeployPowerPlatform@thisbuild
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand Down Expand Up @@ -372,20 +357,20 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

- name: Deliver
uses: freddydk/AL-Go/Actions/Deliver@partial
uses: freddydk/AL-Go/Actions/Deliver@thisbuild
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -405,7 +390,7 @@ jobs:

- name: Finalize the workflow
id: PostProcess
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/CreateApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: [ ubuntu-latest ]
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild
with:
shell: pwsh

Expand All @@ -60,27 +60,27 @@ jobs:

- name: Initialize the workflow
id: init
uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial
uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild
with:
shell: pwsh

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@partial
uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild
with:
shell: pwsh
get: type

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@partial
uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Creating a new app
uses: freddydk/AL-Go/Actions/CreateApp@partial
uses: freddydk/AL-Go/Actions/CreateApp@thisbuild
with:
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -94,7 +94,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
Loading

0 comments on commit 8b4df09

Please sign in to comment.