From bc5af2fded54d519242a54e4af0a1dbc82068078 Mon Sep 17 00:00:00 2001 From: freddydk Date: Mon, 18 Dec 2023 11:33:20 +0000 Subject: [PATCH] Update AL-Go System Files --- .AL-Go/cloudDevEnv.ps1 | 4 +- .AL-Go/localDevEnv.ps1 | 4 +- .github/AL-Go-Settings.json | 4 +- .github/workflows/CICD.yaml | 38 +++++++++---------- .../CreateOnlineDevelopmentEnvironment.yaml | 22 +++++------ .github/workflows/CreateRelease.yaml | 28 +++++++------- .github/workflows/Current.yaml | 10 ++--- .../DeployReferenceDocumentation.yaml | 8 ++-- .github/workflows/IncrementVersionNumber.yaml | 12 +++--- .github/workflows/NextMajor.yaml | 10 ++--- .github/workflows/NextMinor.yaml | 10 ++--- .github/workflows/PublishToAppSource.yaml | 12 +++--- .github/workflows/PublishToEnvironment.yaml | 24 ++++++------ .github/workflows/PullRequestHandler.yaml | 14 ++++--- .github/workflows/Troubleshooting.yaml | 2 +- .../workflows/UpdateGitHubGoSystemFiles.yaml | 14 +++---- .github/workflows/_BuildALGoProject.yaml | 26 ++++++++----- 17 files changed, 125 insertions(+), 117 deletions(-) diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 51204f7..7cba9e4 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 3cfe292..9afcd5a 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index af0ddba..c7dc42f 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -1,6 +1,6 @@ { "type": "AppSource App", - "templateUrl": "https://github.com/freddydk/AL-Go@bcptreport", + "templateUrl": "https://github.com/freddydk/AL-Go@nuget", "NextMajorSchedule": "0 2 * * 0", "NextMinorSchedule": "0 2 * * 6", "CurrentSchedule": "0 2 * * 1,2,3,4,5", @@ -12,5 +12,5 @@ "CreatePerformanceTestApp.yaml" ], "BcContainerHelperVersion": "latest", - "templateSha": "10f98f2810aebb6f5ca54180a2d794ee24d7f15f" + "templateSha": "679d5cf17e51b1cd558453f429df6e59bf2ce95c" } diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 1bed6bc..bde50fc 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -42,7 +42,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -53,14 +53,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0091" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh get: type @@ -72,14 +72,14 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@bcptreport + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@nuget with: shell: pwsh projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -87,7 +87,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -95,7 +95,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@bcptreport + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -105,7 +105,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@bcptreport + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@nuget env: GITHUB_TOKEN: ${{ github.token }} with: @@ -121,13 +121,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh get: templateUrl - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@bcptreport + uses: freddydk/AL-Go/Actions/CheckForUpdates@nuget with: shell: pwsh templateUrl: ${{ env.templateUrl }} @@ -180,7 +180,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh @@ -189,7 +189,7 @@ jobs: uses: actions/configure-pages@v3 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@bcptreport + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@nuget with: shell: pwsh artifacts: '.artifacts' @@ -223,7 +223,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh @@ -236,7 +236,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -244,7 +244,7 @@ jobs: - name: Deploy id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@bcptreport + uses: freddydk/AL-Go/Actions/Deploy@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -273,20 +273,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: freddydk/AL-Go/Actions/Deliver@bcptreport + uses: freddydk/AL-Go/Actions/Deliver@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -306,7 +306,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0091" diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index b58fa92..3c70885 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -48,7 +48,7 @@ jobs: githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -57,20 +57,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0093" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -83,17 +83,17 @@ jobs: $settings = $env:Settings | ConvertFrom-Json if ('${{ fromJson(steps.ReadSecrets.outputs.Secrets).adminCenterApiCredentials }}') { Write-Host "AdminCenterApiCredentials provided in secret $($settings.adminCenterApiCredentialsSecretName)!" - Add-Content -Encoding UTF8 -path $ENV:GITHUB_STEP_SUMMARY -value "Admin Center Api Credentials was provided in a secret called $($settings.adminCenterApiCredentialsSecretName). Using this information for authentication." + Set-Content -Path $ENV:GITHUB_STEP_SUMMARY -value "Admin Center Api Credentials was provided in a secret called $($settings.adminCenterApiCredentialsSecretName). Using this information for authentication." } else { Write-Host "AdminCenterApiCredentials not provided, initiating Device Code flow" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient = New-Object System.Net.WebClient - $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) - Add-Content -Encoding UTF8 -path $ENV:GITHUB_STEP_SUMMARY -value "AL-Go needs access to the Business Central Admin Center Api and could not locate a secret called $($settings.adminCenterApiCredentialsSecretName) (https://aka.ms/ALGoSettings#AdminCenterApiCredentialsSecretName)`n`n$($authContext.message)" + Set-Content -Path $ENV:GITHUB_STEP_SUMMARY -value "AL-Go needs access to the Business Central Admin Center Api and could not locate a secret called $($settings.adminCenterApiCredentialsSecretName) (https://aka.ms/ALGoSettings#AdminCenterApiCredentialsSecretName)`n`n$($authContext.message)" Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "deviceCode=$($authContext.deviceCode)" } @@ -111,13 +111,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -136,7 +136,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@bcptreport + uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@nuget with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0093" diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 663a3ca..a10ed26 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -67,7 +67,7 @@ jobs: releaseBranch: ${{ steps.createreleasenotes.outputs.releaseBranch }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -76,26 +76,26 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0094" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh get: templateUrl,repoName - name: Determine Projects id: determineProjects - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: pwsh - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@bcptreport + uses: freddydk/AL-Go/Actions/CheckForUpdates@nuget with: shell: pwsh templateUrl: ${{ env.templateUrl }} @@ -180,7 +180,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: freddydk/AL-Go/Actions/CreateReleaseNotes@bcptreport + uses: freddydk/AL-Go/Actions/CreateReleaseNotes@nuget with: shell: pwsh parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -223,13 +223,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -266,7 +266,7 @@ jobs: }); - name: Deliver to NuGet - uses: freddydk/AL-Go/Actions/Deliver@bcptreport + uses: freddydk/AL-Go/Actions/Deliver@nuget if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -279,7 +279,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: freddydk/AL-Go/Actions/Deliver@bcptreport + uses: freddydk/AL-Go/Actions/Deliver@nuget if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -316,13 +316,13 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -330,7 +330,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@bcptreport + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@nuget with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -348,7 +348,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0094" diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 3d6d3d8..73be258 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -31,7 +31,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -42,14 +42,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0101" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh @@ -60,7 +60,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -97,7 +97,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0101" diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index 1adfb5d..709fa77 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -30,19 +30,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0097" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@bcptreport + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@nuget env: GITHUB_TOKEN: ${{ github.token }} with: @@ -55,7 +55,7 @@ jobs: uses: actions/configure-pages@v3 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@bcptreport + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@nuget with: shell: pwsh artifacts: 'latest' diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index c428c5d..b1f8831 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -39,7 +39,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -48,19 +48,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0096" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -68,7 +68,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@bcptreport + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@nuget with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0096" diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index c52b6a4..178acd0 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -31,7 +31,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -42,14 +42,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0099" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh @@ -60,7 +60,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -97,7 +97,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0099" diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 46f9d3d..59daa10 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -31,7 +31,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -42,14 +42,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0100" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh @@ -60,7 +60,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -97,7 +97,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0100" diff --git a/.github/workflows/PublishToAppSource.yaml b/.github/workflows/PublishToAppSource.yaml index 8484d82..2f413db 100644 --- a/.github/workflows/PublishToAppSource.yaml +++ b/.github/workflows/PublishToAppSource.yaml @@ -36,7 +36,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -45,7 +45,7 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0103" @@ -59,20 +59,20 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} getSecrets: 'appSourceContext' - name: Deliver - uses: freddydk/AL-Go/Actions/Deliver@bcptreport + uses: freddydk/AL-Go/Actions/Deliver@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0103" diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 13accbe..5842851 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -35,7 +35,7 @@ jobs: deviceCode: ${{ steps.Authenticate.outputs.deviceCode }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: pwsh @@ -44,20 +44,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: pwsh eventId: "DO0097" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@bcptreport + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@nuget env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: pwsh @@ -101,17 +101,17 @@ jobs: } if ($authContext) { Write-Host "AuthContext provided in secret $secretName!" - Add-Content -Encoding UTF8 -path $ENV:GITHUB_STEP_SUMMARY -value "AuthContext was provided in a secret called $secretName. Using this information for authentication." + Set-Content -Path $ENV:GITHUB_STEP_SUMMARY -value "AuthContext was provided in a secret called $secretName. Using this information for authentication." } else { Write-Host "No AuthContext provided for $envName, initiating Device Code flow" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient = New-Object System.Net.WebClient - $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/bcptreport/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/nuget/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) - Add-Content -Encoding UTF8 -path $ENV:GITHUB_STEP_SUMMARY -value "AL-Go needs access to the Business Central Environment $('${{ steps.envName.outputs.envName }}'.Split(' ')[0]) and could not locate a secret called ${{ steps.envName.outputs.envName }}_AuthContext`n`n$($authContext.message)" + Set-Content -Path $ENV:GITHUB_STEP_SUMMARY -value "AL-Go needs access to the Business Central Environment $('${{ steps.envName.outputs.envName }}'.Split(' ')[0]) and could not locate a secret called ${{ steps.envName.outputs.envName }}_AuthContext`n`n$($authContext.message)" Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "deviceCode=$($authContext.deviceCode)" } @@ -138,13 +138,13 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -152,7 +152,7 @@ jobs: - name: Deploy id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@bcptreport + uses: freddydk/AL-Go/Actions/Deploy@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -172,7 +172,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: pwsh eventId: "DO0097" diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index ce0ae8c..927d73d 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -27,7 +27,7 @@ jobs: if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request') runs-on: [ windows-latest ] steps: - - uses: freddydk/AL-Go/Actions/VerifyPRChanges@bcptreport + - uses: freddydk/AL-Go/Actions/VerifyPRChanges@nuget Initialization: needs: [ PregateCheck ] @@ -40,10 +40,11 @@ jobs: projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }} projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} + baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: powershell @@ -55,14 +56,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: powershell eventId: "DO0104" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: powershell @@ -73,7 +74,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@bcptreport + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@nuget with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -97,6 +98,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} + baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} artifactsNameSuffix: 'PR${{ github.event.number }}' @@ -109,7 +111,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@bcptreport + uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@nuget env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 423146a..86fe18d 100644 --- a/.github/workflows/Troubleshooting.yaml +++ b/.github/workflows/Troubleshooting.yaml @@ -30,7 +30,7 @@ jobs: lfs: true - name: Troubleshooting - uses: freddydk/AL-Go/Actions/Troubleshooting@bcptreport + uses: freddydk/AL-Go/Actions/Troubleshooting@nuget with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index 9c8c87e..3993971 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: templateUrl: - description: Template Repository URL (current is https://github.com/freddydk/AL-Go@bcptreport) + description: Template Repository URL (current is https://github.com/freddydk/AL-Go@nuget) required: false default: '' downloadLatest: @@ -33,7 +33,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@bcptreport + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@nuget with: shell: powershell @@ -42,20 +42,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowInitialize@nuget with: shell: powershell eventId: "DO0098" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -91,7 +91,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_ENV -Value "downloadLatest=$downloadLatest" - name: Update AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@bcptreport + uses: freddydk/AL-Go/Actions/CheckForUpdates@nuget with: shell: powershell token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -102,7 +102,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@bcptreport + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@nuget with: shell: powershell eventId: "DO0098" diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index a1ece0d..1332f8d 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -36,6 +36,11 @@ on: description: Build mode used when building the artifacts required: true type: string + baselineWorkflowRunId: + description: ID of the baseline workflow run, from where to download the current project dependencies, in case they are not built in the current workflow run + required: false + default: '0' + type: string secrets: description: A comma-separated string with the names of the secrets, required for the workflow. required: false @@ -87,7 +92,7 @@ jobs: lfs: true - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@bcptreport + uses: freddydk/AL-Go/Actions/ReadSettings@nuget with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -96,14 +101,14 @@ jobs: - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: freddydk/AL-Go/Actions/ReadSecrets@bcptreport + uses: freddydk/AL-Go/Actions/ReadSecrets@nuget with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} - getSecrets: '${{ inputs.secrets }},appDependencyProbingPathsSecrets' + getSecrets: '${{ inputs.secrets }},appDependencySecrets' - name: Determine ArtifactUrl - uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@bcptreport + uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@nuget id: determineArtifactUrl with: shell: ${{ inputs.shell }} @@ -119,7 +124,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@bcptreport + uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -127,9 +132,10 @@ jobs: project: ${{ inputs.project }} buildMode: ${{ inputs.buildMode }} projectsDependenciesJson: ${{ inputs.projectDependenciesJson }} + baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: freddydk/AL-Go/Actions/RunPipeline@bcptreport + uses: freddydk/AL-Go/Actions/RunPipeline@nuget env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -145,7 +151,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && env.keyVaultCodesignCertificateName != '' id: sign - uses: freddydk/AL-Go/Actions/Sign@bcptreport + uses: freddydk/AL-Go/Actions/Sign@nuget with: shell: ${{ needs.Initialization.outputs.githubRunnerShell }} azureCredentialsJson: ${{ secrets.AZURE_CREDENTIALS }} @@ -154,7 +160,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: freddydk/AL-Go/Actions/CalculateArtifactNames@bcptreport + uses: freddydk/AL-Go/Actions/CalculateArtifactNames@nuget if: success() || failure() with: shell: ${{ inputs.shell }} @@ -248,7 +254,7 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: freddydk/AL-Go/Actions/AnalyzeTests@bcptreport + uses: freddydk/AL-Go/Actions/AnalyzeTests@nuget with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} @@ -256,7 +262,7 @@ jobs: - name: Cleanup if: always() - uses: freddydk/AL-Go/Actions/PipelineCleanup@bcptreport + uses: freddydk/AL-Go/Actions/PipelineCleanup@nuget with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}