From 570b9db1c90a9c47eb36eba2ea9ffec088ea0f78 Mon Sep 17 00:00:00 2001 From: PropmanProphecy Date: Fri, 6 Feb 2026 12:11:46 +0000 Subject: [PATCH] [main@6b1b465] Update AL-Go System Files from microsoft/AL-Go-PTE@main - 62683d6 --- .AL-Go/cloudDevEnv.ps1 | 12 +-- .AL-Go/localDevEnv.ps1 | 12 +-- .AL-Go/settings.json | 2 +- .github/AL-Go-Settings.json | 4 +- .github/RELEASENOTES.copy.md | 40 ++++++++++ .github/Test Current.settings.json | 2 +- .github/Test Next Major.settings.json | 2 +- .github/Test Next Minor.settings.json | 2 +- .../workflows/AddExistingAppOrTestApp.yaml | 14 ++-- .github/workflows/CICD.yaml | 73 ++++++++++--------- .github/workflows/CreateApp.yaml | 14 ++-- .../CreateOnlineDevelopmentEnvironment.yaml | 22 +++--- .../workflows/CreatePerformanceTestApp.yaml | 14 ++-- .github/workflows/CreateRelease.yaml | 44 +++++------ .github/workflows/CreateTestApp.yaml | 14 ++-- .github/workflows/Current.yaml | 19 ++--- .../DeployReferenceDocumentation.yaml | 14 ++-- .github/workflows/IncrementVersionNumber.yaml | 16 ++-- .github/workflows/NextMajor.yaml | 19 ++--- .github/workflows/NextMinor.yaml | 19 ++--- .github/workflows/PublishToEnvironment.yaml | 35 +++++---- .github/workflows/PullRequestHandler.yaml | 32 ++++---- .github/workflows/Troubleshooting.yaml | 4 +- .../workflows/UpdateGitHubGoSystemFiles.yaml | 44 ++++++++--- .github/workflows/_BuildALGoProject.yaml | 53 +++++++------- 25 files changed, 299 insertions(+), 227 deletions(-) diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 3f0aec9..4e539a3 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -141,12 +141,12 @@ 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/v8.1/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt -$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/ReadSettings.psm1' -folder $tmpFolder -$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/DebugLogHelper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/Environment.Packages.proj' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt +$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/ReadSettings.psm1' -folder $tmpFolder +$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/DebugLogHelper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/Environment.Packages.proj' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath Import-Module $ReadSettingsModule diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 7399059..a1924ac 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -154,12 +154,12 @@ 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/v8.1/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt -$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/ReadSettings.psm1' -folder $tmpFolder -$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/DebugLogHelper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/Environment.Packages.proj' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt +$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/ReadSettings.psm1' -folder $tmpFolder +$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/DebugLogHelper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/Environment.Packages.proj' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath Import-Module $ReadSettingsModule diff --git a/.AL-Go/settings.json b/.AL-Go/settings.json index 9dd7c5c..17625ef 100644 --- a/.AL-Go/settings.json +++ b/.AL-Go/settings.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json", "country": "us", "appFolders": [], "testFolders": [], diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index 02a1580..23cb9bb 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -1,8 +1,8 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json", "type": "PTE", "templateUrl": "https://github.com/microsoft/AL-Go-PTE@main", - "templateSha": "2b0291277622df06df2856bc05768be2ebb5a6b5", + "templateSha": "62683d6c71618bc3249ff55a950fd8ab3a380925", "installApps": [ "https://printvis.blob.core.windows.net/releases/CloudApps/NovaVision%20Software%20AS_PrintVis_24.4.1.0.app?sv=2023-01-03&st=2024-09-11T08%3A53%3A22Z&se=2026-07-12T08%3A53%3A00Z&sr=b&sp=r&sig=4bLYDcdOlC1Ymx8q%2Fa2hM5ci%2B%2By2TePO5eEQ%2F4q5KjI%3D" ], diff --git a/.github/RELEASENOTES.copy.md b/.github/RELEASENOTES.copy.md index 0e6ecd2..aab3967 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,43 @@ +## v8.2 + +### Issues + +- Issue 2095 DeliverToAppSource.ProductId needs to be specified (Library app) +- Issue 2082 Sign action no longer fails when repository is empty or no artifacts are generated +- Issue 2078 Workflows run since January 14th '26 have space before CI/CD removed +- Issue 2070 Support public GitHub Packages feeds without requiring a Personal Access Token (PAT) +- Issue 2004 PublishToAppSource workflow publishes multi-app repos in alphabetical order instead of dependency order +- Issue 2045 DateTime parsing fails on non-US locale runners in WorkflowPostProcess.ps1 +- Issue 2055 When using versioningStrategy 3+16, you get an error when building +- Issue 2094 PR into release branch gets wrong previous release +- AL-Go repositories with large amounts of projects may run into issues with too large environment variables +- Discussion 1855 Add trigger 'workflow_call' to workflow 'Update AL-Go System Files' for reusability +- Issue 2050 Publish To Environment creates mistyped environment + +### Publish To Environment no longer creates unknown environments by default + +Previously, when running the "Publish To Environment" workflow with an environment name that doesn't exist in GitHub or AL-Go settings, the workflow would automatically create a new GitHub environment. This could lead to problems when environment names were mistyped, as the bogus environment would then cause subsequent CI/CD workflows to fail. + +Now, the workflow will fail with a clear error message if the specified environment doesn't exist. If you intentionally want to deploy to a new environment that hasn't been configured yet, you can check the **Create environment if it does not exist** checkbox when running the workflow. + +### Set default values for workflow inputs + +The `workflowDefaultInputs` setting now also applies to `workflow_call` inputs when an input with the same name exists for `workflow_dispatch`. +This ensures consistent default values across both manual workflow runs and reusable workflow calls. + +Read more at [workflowDefaultInputs](https://aka.ms/algosettings#workflowDefaultInputs). + +### Merge queue support + +AL-Go now supports GitHub's merge queue feature out of the box! The `merge_group` trigger has been added to the Pull Request Build workflow, enabling seamless integration with merge queues. When you have the merge queue feature enabled in your repo, multiple PRs will automatically be validated together. Read more about merge queues [here](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue). + +> [!WARNING] +> If you rely on a custom workflow for merge queue validation, you may need to adjust your setup to avoid duplicate builds. + +### AL-Go Telemetry updates + +AL-Go telemetry now includes test results so you can more easily see how many AL tests, Page Scripting tests and BCPT tests ran in your workflows across all your repositories. Documentation for this can be found on [this article](https://github.com/microsoft/AL-Go/blob/main/Scenarios/EnablingTelemetry.md) on enabling telemetry. + ## v8.1 ### Custom AL-Go files diff --git a/.github/Test Current.settings.json b/.github/Test Current.settings.json index 1cc22aa..59d3f0e 100644 --- a/.github/Test Current.settings.json +++ b/.github/Test Current.settings.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json", "artifact": "////latest", "cacheImageName": "", "versioningStrategy": 15 diff --git a/.github/Test Next Major.settings.json b/.github/Test Next Major.settings.json index ab3aaf0..36e3610 100644 --- a/.github/Test Next Major.settings.json +++ b/.github/Test Next Major.settings.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json", "artifact": "////nextmajor", "cacheImageName": "", "versioningStrategy": 15 diff --git a/.github/Test Next Minor.settings.json b/.github/Test Next Minor.settings.json index c5c2ce6..5f5fc9a 100644 --- a/.github/Test Next Minor.settings.json +++ b/.github/Test Next Minor.settings.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/.Modules/settings.schema.json", "artifact": "////nextminor", "cacheImageName": "", "versioningStrategy": 15 diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 5f03b75..86b5c6d 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -41,27 +41,27 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -69,7 +69,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: microsoft/AL-Go-Actions/AddExistingApp@v8.1 + uses: microsoft/AL-Go-Actions/AddExistingApp@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 8b67267..ae6a48c 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -19,6 +19,7 @@ permissions: id-token: write pages: read security-events: write + packages: read env: workflowDepth: 1 @@ -50,24 +51,24 @@ jobs: trackALAlertsInGitHub: ${{ steps.SetALCodeAnalysisVar.outputs.trackALAlertsInGitHub }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: type,powerPlatformSolutionFolder,useGitSubmodules,trackALAlertsInGitHub @@ -81,7 +82,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -89,7 +90,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -102,7 +103,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -115,7 +116,7 @@ jobs: - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.1 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.2 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -123,7 +124,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -131,7 +132,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.1 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -141,7 +142,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -154,24 +155,24 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: 'ghTokenWorkflow' - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -212,10 +213,10 @@ jobs: name: Code Analysis Processing steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download artifacts - ErrorLogs - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 if: (success() || failure()) with: pattern: '*-*ErrorLogs-*' @@ -225,7 +226,7 @@ jobs: - name: Process AL Code Analysis Logs id: ProcessALCodeAnalysisLogs if: (success() || failure()) - uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.1 + uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.2 with: shell: powershell @@ -251,21 +252,21 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download artifacts - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Determine ArtifactUrl id: determineArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.2 with: shell: powershell @@ -274,7 +275,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.1 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.2 with: shell: powershell artifacts: '.artifacts' @@ -307,15 +308,15 @@ jobs: ALGoEnvName: ${{ matrix.environment }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download artifacts - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder @@ -329,7 +330,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -337,7 +338,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v8.1 + uses: microsoft/AL-Go-Actions/Deploy@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -349,7 +350,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.1 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -369,28 +370,28 @@ jobs: name: Deliver to ${{ matrix.deliveryTarget }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download artifacts - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v8.1 + uses: microsoft/AL-Go-Actions/Deliver@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -406,11 +407,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index ca69827..1d2e7a0 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -51,28 +51,28 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: microsoft/AL-Go-Actions/CreateApp@v8.1 + uses: microsoft/AL-Go-Actions/CreateApp@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index f1f1456..5c00663 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -50,28 +50,28 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -90,7 +90,7 @@ jobs: 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/microsoft/AL-Go-Actions/v8.1/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -109,16 +109,16 @@ jobs: deviceCode: ${{ needs.Initialization.outputs.deviceCode }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -137,7 +137,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v8.1 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index ed75816..8466fad 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -57,27 +57,27 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -85,7 +85,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v8.1 + uses: microsoft/AL-Go-Actions/CreateApp@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -100,7 +100,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 6dd58b0..2185548 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -78,35 +78,35 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: templateUrl,repoName,type,powerPlatformSolutionFolder - name: Validate Workflow Input if: ${{ github.event_name == 'workflow_dispatch' }} - uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.1 + uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -115,12 +115,12 @@ jobs: - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -130,7 +130,7 @@ jobs: downloadLatest: true - name: Determine artifacts for release - uses: microsoft/AL-Go-Actions/DetermineArtifactsForRelease@v8.1 + uses: microsoft/AL-Go-Actions/DetermineArtifactsForRelease@v8.2 id: determineArtifactsForRelease with: shell: powershell @@ -141,7 +141,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v8.1 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v8.2 with: shell: powershell buildVersion: ${{ github.event.inputs.buildVersion }} @@ -187,16 +187,16 @@ jobs: fail-fast: true steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -240,7 +240,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v8.1 + uses: microsoft/AL-Go-Actions/Deliver@v8.2 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -253,7 +253,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: microsoft/AL-Go-Actions/Deliver@v8.1 + uses: microsoft/AL-Go-Actions/Deliver@v8.2 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -271,7 +271,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: '${{ needs.createRelease.outputs.commitish }}' @@ -294,16 +294,16 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -311,7 +311,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.1 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -325,11 +325,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index beeac7b..769044d 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -53,27 +53,27 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -81,7 +81,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v8.1 + uses: microsoft/AL-Go-Actions/CreateApp@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -95,7 +95,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 23b8494..b005fae 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -7,6 +7,7 @@ permissions: actions: read contents: read id-token: write + packages: read defaults: run: @@ -30,24 +31,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +56,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +64,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +78,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +111,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index e0b0074..9058652 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -26,28 +26,28 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Determine ArtifactUrl id: determineArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.2 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -60,7 +60,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.1 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.2 with: shell: powershell artifacts: 'latest' @@ -78,7 +78,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index cc6caf6..448275d 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -48,33 +48,33 @@ jobs: pull-requests: write steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Validate Workflow Input if: ${{ github.event_name == 'workflow_dispatch' }} - uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.1 + uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -82,7 +82,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.1 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -93,7 +93,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index a50e9a0..25a1bcf 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -7,6 +7,7 @@ permissions: actions: read contents: read id-token: write + packages: read defaults: run: @@ -30,24 +31,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +56,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +64,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +78,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +111,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 06f520a..b877847 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -7,6 +7,7 @@ permissions: actions: read contents: read id-token: write + packages: read defaults: run: @@ -30,24 +31,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +56,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +64,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +78,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +111,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 0c061f6..6f711cd 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -10,6 +10,10 @@ on: environmentName: description: Environment mask to receive the new version (* for all, PROD* for all environments starting with PROD) required: true + createEnvIfNotExists: + description: Create environment if it does not exist (use with care, yourEnvName_AuthContext yourEnvName_EnvironmentName yourEnvName_Scope must be defined as environment secrets/variables or repo secrets/variables) + type: boolean + default: false permissions: actions: read @@ -38,34 +42,35 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: shell: powershell getEnvironments: ${{ github.event.inputs.environmentName }} type: 'Publish' + createEnvIfNotExists: ${{ github.event.inputs.createEnvIfNotExists }} - name: EnvName id: envName @@ -77,7 +82,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: powershell @@ -109,7 +114,7 @@ jobs: 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/microsoft/AL-Go-Actions/v8.1/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.2/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -135,7 +140,7 @@ jobs: ALGoEnvName: ${{ matrix.environment }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: EnvName id: envName @@ -145,21 +150,21 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext' - name: Get Artifacts for deployment - uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v8.1 + uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v8.2 with: shell: ${{ matrix.shell }} artifactsVersion: ${{ github.event.inputs.appVersion }} @@ -167,7 +172,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v8.1 + uses: microsoft/AL-Go-Actions/Deploy@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -180,7 +185,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.1 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -195,11 +200,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index c39b6ea..4620a80 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -3,9 +3,10 @@ name: 'Pull Request Build' on: pull_request_target: branches: [ 'main' ] + merge_group: concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && github.run_id || github.event.pull_request.number }} cancel-in-progress: true defaults: @@ -18,6 +19,7 @@ permissions: id-token: write pull-requests: read security-events: write + packages: read env: workflowDepth: 1 @@ -29,7 +31,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: microsoft/AL-Go-Actions/VerifyPRChanges@v8.1 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v8.2 Initialization: needs: [ PregateCheck ] @@ -47,25 +49,25 @@ jobs: trackALAlertsInGitHub: ${{ steps.SetALCodeAnalysisVar.outputs.trackALAlertsInGitHub }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - ref: ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }} + ref: ${{ github.event_name == 'pull_request' && github.sha || github.event_name == 'merge_group' && github.ref || format('refs/pull/{0}/merge', github.event.pull_request.number) }} - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: shortLivedArtifactsRetentionDays,trackALAlertsInGitHub @@ -84,7 +86,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -102,7 +104,7 @@ jobs: with: shell: ${{ matrix.githubRunnerShell }} runsOn: ${{ matrix.githubRunner }} - checkoutRef: ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }} + checkoutRef: ${{ github.event_name == 'pull_request' && github.sha || github.event_name == 'merge_group' && github.ref || format('refs/pull/{0}/merge', github.event.pull_request.number) }} project: ${{ matrix.project }} projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} @@ -117,17 +119,17 @@ jobs: CodeAnalysisUpload: needs: [ Initialization, Build ] - if: (!cancelled()) && (needs.Initialization.outputs.trackALAlertsInGitHub == 'True') + if: (!cancelled()) && (needs.Initialization.outputs.trackALAlertsInGitHub == 'True') && (github.event_name != 'merge_group') runs-on: [ windows-latest ] name: Code Analysis Processing steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ format('refs/pull/{0}/head', github.event.pull_request.number) }} - name: Download artifacts - ErrorLogs - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 if: (success() || failure()) with: pattern: '*-*ErrorLogs-*' @@ -137,7 +139,7 @@ jobs: - name: Process AL Code Analysis Logs id: ProcessALCodeAnalysisLogs if: (success() || failure()) - uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.1 + uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.2 with: shell: powershell @@ -158,7 +160,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v8.1 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -166,7 +168,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 if: success() || failure() env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 0b44e18..3524c62 100644 --- a/.github/workflows/Troubleshooting.yaml +++ b/.github/workflows/Troubleshooting.yaml @@ -25,12 +25,12 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: lfs: true - name: Troubleshooting - uses: microsoft/AL-Go-Actions/Troubleshooting@v8.1 + uses: microsoft/AL-Go-Actions/Troubleshooting@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index 9e7d1ac..9ed2353 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -19,6 +19,26 @@ on: description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only. required: false default: '' + workflow_call: + inputs: + templateUrl: + description: Template Repository URL (current is https://github.com/microsoft/AL-Go-PTE@main) + type: string + required: false + default: '' + downloadLatest: + description: Download latest from template repository + type: boolean + default: true + directCommit: + description: Direct Commit? + type: boolean + default: false + includeBranches: + description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only. + type: string + required: false + default: '' schedule: - cron: '00 12 * * 5' @@ -44,18 +64,18 @@ jobs: TemplateUrl: ${{ steps.DetermineTemplateUrl.outputs.TemplateUrl }} steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: templateUrl - name: Get Workflow Multi-Run Branches id: GetBranches - uses: microsoft/AL-Go-Actions/GetWorkflowMultiRunBranches@v8.1 + uses: microsoft/AL-Go-Actions/GetWorkflowMultiRunBranches@v8.2 with: shell: powershell includeBranches: ${{ github.event.inputs.includeBranches }} @@ -84,30 +104,30 @@ jobs: steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.2 with: shell: powershell - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ matrix.branch }} - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: powershell get: commitOptions - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -119,8 +139,8 @@ jobs: downloadLatest: '${{ github.event.inputs.downloadLatest }}' run: | $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 - if('${{ github.event_name }}' -eq 'workflow_dispatch') { - Write-Host "Using inputs from workflow_dispatch event" + if('${{ github.event_name }}' -in 'workflow_dispatch', 'workflow_call') { + Write-Host "Using inputs from ${{ github.event_name }} event" $directCommit = $env:directCommit $downloadLatest = $env:downloadLatest } @@ -134,7 +154,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_ENV -Value "downloadLatest=$downloadLatest" - name: Update AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -148,7 +168,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index 59ceffd..9337867 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -82,6 +82,7 @@ permissions: actions: read contents: read id-token: write + packages: read env: ALGoOrgSettings: ${{ vars.ALGoOrgSettings }} @@ -97,13 +98,13 @@ jobs: name: ${{ inputs.projectName }} (${{ inputs.buildMode }}) steps: - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ inputs.checkoutRef }} lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -112,7 +113,7 @@ jobs: - name: Determine whether to build project id: DetermineBuildProject - uses: microsoft/AL-Go-Actions/DetermineBuildProject@v8.1 + uses: microsoft/AL-Go-Actions/DetermineBuildProject@v8.2 with: shell: ${{ inputs.shell }} skippedProjectsJson: ${{ inputs.skippedProjectsJson }} @@ -122,7 +123,7 @@ jobs: - name: Read secrets id: ReadSecrets if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && github.event_name != 'pull_request' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.2 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -130,7 +131,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ inputs.checkoutRef }} lfs: true @@ -140,14 +141,14 @@ jobs: - name: Determine ArtifactUrl id: determineArtifactUrl if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - name: Cache Business Central Artifacts if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && env.useCompilerFolder == 'True' && inputs.useArtifactCache && env.artifactCacheKey - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: path: ${{ runner.temp }}/.artifactcache key: ${{ env.artifactCacheKey }} @@ -155,7 +156,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v8.1 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v8.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -166,7 +167,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: microsoft/AL-Go-Actions/RunPipeline@v8.1 + uses: microsoft/AL-Go-Actions/RunPipeline@v8.2 if: steps.DetermineBuildProject.outputs.BuildIt == 'True' env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -184,8 +185,8 @@ jobs: - name: Sign id: sign - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && inputs.signArtifacts && env.doNotSignApps == 'False' && (env.keyVaultCodesignCertificateName != '' || (fromJson(env.trustedSigning).Endpoint != '' && fromJson(env.trustedSigning).Account != '' && fromJson(env.trustedSigning).CertificateProfile != '')) - uses: microsoft/AL-Go-Actions/Sign@v8.1 + if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && inputs.signArtifacts && env.doNotSignApps == 'False' && (env.keyVaultCodesignCertificateName != '' || (fromJson(env.trustedSigning).Endpoint != '' && fromJson(env.trustedSigning).Account != '' && fromJson(env.trustedSigning).CertificateProfile != '')) && (hashFiles(format('{0}/.buildartifacts/Apps/*.app',inputs.project)) != '') + uses: microsoft/AL-Go-Actions/Sign@v8.2 with: shell: ${{ inputs.shell }} azureCredentialsJson: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}' @@ -193,7 +194,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v8.1 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v8.2 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -202,7 +203,7 @@ jobs: suffix: ${{ inputs.artifactsNameSuffix }} - name: Publish artifacts - apps - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/Apps/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.AppsArtifactsName }} @@ -211,7 +212,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - dependencies - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: inputs.artifactsRetentionDays >= 0 && env.generateDependencyArtifact == 'True' && (hashFiles(format('{0}/.buildartifacts/Dependencies/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.DependenciesArtifactsName }} @@ -220,7 +221,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - test apps - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/TestApps/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestAppsArtifactsName }} @@ -229,7 +230,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - build output - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && (hashFiles(format('{0}/BuildOutput.txt',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BuildOutputArtifactsName }} @@ -237,7 +238,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - container event log - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (failure()) && (hashFiles(format('{0}/ContainerEventLog.evtx',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.ContainerEventLogArtifactsName }} @@ -245,7 +246,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - test results - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/TestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestResultsArtifactsName }} @@ -253,7 +254,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - bcpt test results - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/bcptTestResults.json',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BcptTestResultsArtifactsName }} @@ -261,7 +262,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test results - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultsArtifactsName }} @@ -269,7 +270,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test result details - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResultDetails/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultDetailsArtifactsName }} @@ -277,7 +278,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - ErrorLogs - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: (success() || failure()) && inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/ErrorLogs/*',inputs.project)) != '') && env.trackALAlertsInGitHub == 'True' with: name: ${{ steps.calculateArtifactsNames.outputs.ErrorLogsArtifactsName }} @@ -288,7 +289,7 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -297,7 +298,7 @@ jobs: - name: Analyze BCPT Test Results id: analyzeTestResultsBCPT if: (success() || failure()) && env.doNotRunBcptTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -306,7 +307,7 @@ jobs: - name: Analyze Page Scripting Test Results id: analyzeTestResultsPageScripting if: (success() || failure()) && env.doNotRunpageScriptingTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -314,7 +315,7 @@ jobs: - name: Cleanup if: always() && steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/PipelineCleanup@v8.1 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v8.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }}