From d63f9e7854b741eeb6533ed2b0463c5827dbf45d Mon Sep 17 00:00:00 2001 From: PropmanProphecy Date: Fri, 5 Dec 2025 12:07:43 +0000 Subject: [PATCH] [main@944fb9e] Update AL-Go System Files from microsoft/AL-Go-PTE@main - 2b02912 --- .AL-Go/cloudDevEnv.ps1 | 117 ++++++++++++++-- .AL-Go/localDevEnv.ps1 | 126 ++++++++++++++++-- .AL-Go/settings.json | 2 +- .github/AL-Go-Settings.json | 4 +- .github/RELEASENOTES.copy.md | 66 ++++++++- .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 | 79 ++++++----- .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 | 18 +-- .../DeployReferenceDocumentation.yaml | 19 ++- .github/workflows/IncrementVersionNumber.yaml | 16 +-- .github/workflows/NextMajor.yaml | 18 +-- .github/workflows/NextMinor.yaml | 18 +-- .github/workflows/PublishToEnvironment.yaml | 30 ++--- .github/workflows/PullRequestHandler.yaml | 24 ++-- .github/workflows/Troubleshooting.yaml | 4 +- .../workflows/UpdateGitHubGoSystemFiles.yaml | 20 +-- .github/workflows/_BuildALGoProject.yaml | 50 +++---- 25 files changed, 504 insertions(+), 235 deletions(-) diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 53f7e9d..3f0aec9 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -1,13 +1,103 @@ -# -# Script for creating cloud development environment -# Please do not modify this script as it will be auto-updated from the AL-Go Template -# Recommended approach is to use as is or add a script (freddyk-devenv.ps1), which calls this script with the user specific parameters -# +<# +.SYNOPSIS + Creates a cloud-based development environment for Business Central AL development using SaaS Sandbox. + +.DESCRIPTION + This script sets up a cloud-based development environment by: + - Creating a Business Central SaaS Sandbox environment + - Compiling and publishing all apps and test apps to the development scope + - Configuring launch.json for Visual Studio Code with Cloud Sandbox configuration + - Optionally applying custom settings to override repository settings + + The script will prompt you interactively for authentication using device code flow. + For automated/unattended execution, you can configure AdminCenterApiCredentials as a GitHub secret + or in Azure KeyVault. See https://aka.ms/algosettings for more information about AdminCenterApiCredentials. + + This is an alternative to localDevEnv.ps1 for users who cannot run Docker containers locally. + + RECOMMENDED USAGE: + Instead of modifying this script directly (which will be overwritten during AL-Go updates), + create a custom script that calls this one with your preferred parameters. For example, + create a file named after yourself (e.g., 'john-devenv.ps1') that contains: + + # My personal cloud development environment script + $mySettings = '{"country":"us"}' + . .\.AL-Go\cloudDevEnv.ps1 -environmentName "john-sandbox" -reuseExistingEnvironment $true -customSettings $mySettings + + This approach allows you to: + - Maintain your personal preferences without losing them during updates + - Share your setup with team members + - Version control your custom development configurations + - Easily switch between different development scenarios + +.PARAMETER environmentName + The name of the cloud sandbox environment to create or reuse. + If not specified, the script will prompt for input with a default of "{username}-sandbox". + +.PARAMETER reuseExistingEnvironment + Boolean parameter indicating whether to reuse an existing environment with the same name. + If $true, the script will use the existing environment if it exists. + If $false, the script will recreate the environment (deleting the old one if it exists). + If not specified, the script will prompt the user to select the behavior. + +.PARAMETER fromVSCode + Switch parameter indicating the script is being run from Visual Studio Code. + When specified, the script will pause at the end waiting for user input before closing. + +.PARAMETER clean + Switch parameter to create a clean development environment without compiling and publishing apps. + Useful for setting up a fresh environment without deploying any applications. + +.PARAMETER customSettings + JSON string containing custom settings that override repository settings. + These settings have the highest precedence and can be used to override country, + or other configuration without modifying repository files. + +.EXAMPLE + .\cloudDevEnv.ps1 + Runs the script interactively, prompting for all required parameters. + +.EXAMPLE + .\cloudDevEnv.ps1 -environmentName "my-sandbox" -reuseExistingEnvironment $true + Creates or reuses a cloud sandbox named "my-sandbox". + +.EXAMPLE + .\cloudDevEnv.ps1 -clean + Creates a clean cloud development environment without compiling and publishing apps. + +.EXAMPLE + .\cloudDevEnv.ps1 -customSettings '{"country":"dk"}' + Creates a cloud development environment with custom settings for Denmark country. + +.EXAMPLE + # Programmatic setup with custom settings + $envName = "test-sandbox" + $settings = '{"country": "us"}' + + . ./cloudDevEnv.ps1 -environmentName $envName -reuseExistingEnvironment $true -customSettings $settings + + Creates or reuses a cloud development environment with custom country setting. + +.NOTES + - Authentication is handled interactively via device code flow (https://aka.ms/devicelogin) + - For unattended execution, configure AdminCenterApiCredentials secret (see link below) + - Does not require Docker to be installed + - Script automatically downloads required AL-Go helper modules and actions + - Modifies launch.json in VS Code workspace for Cloud Sandbox configuration + - Custom settings parameter allows runtime override of repository settings + - If NewBcContainer.ps1 override exists, cloud development may not be supported + +.LINK + https://aka.ms/algosettings - AL-Go Settings Documentation + https://github.com/microsoft/AL-Go/blob/main/Scenarios/CreateOnlineDevEnv2.md - Online Dev Environment Setup +#> + Param( [string] $environmentName = "", [bool] $reuseExistingEnvironment, [switch] $fromVSCode, - [switch] $clean + [switch] $clean, + [string] $customSettings = "" ) $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 @@ -51,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.0/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt -$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/ReadSettings.psm1' -folder $tmpFolder -$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/DebugLogHelper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/Environment.Packages.proj' -folder $tmpFolder | 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 Import-Module $GitHubHelperPath Import-Module $ReadSettingsModule @@ -103,7 +193,8 @@ CreateDevEnv ` -reuseExistingEnvironment:$reuseExistingEnvironment ` -baseFolder $baseFolder ` -project $project ` - -clean:$clean + -clean:$clean ` + -customSettings $customSettings } catch { Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index a567789..7399059 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -1,8 +1,106 @@ -# -# Script for creating local development environment -# Please do not modify this script as it will be auto-updated from the AL-Go Template -# Recommended approach is to use as is or add a script (freddyk-devenv.ps1), which calls this script with the user specific parameters -# +<# +.SYNOPSIS + Creates a local development environment for Business Central AL development using Docker containers. + +.DESCRIPTION + This script sets up a local development environment by: + - Creating a Business Central container using Docker + - Compiling and publishing all apps and test apps to the development scope + - Configuring launch.json for Visual Studio Code with Local Sandbox configuration + - Optionally applying custom settings to override repository settings + + The script requires Docker to be installed and configured to run Windows containers. + If Docker setup fails, users can alternatively run cloudDevEnv.ps1 for cloud-based development. + + RECOMMENDED USAGE: + Instead of modifying this script directly (which will be overwritten during AL-Go updates), + create a custom script that calls this one with your preferred parameters. For example, + create a file named after yourself (e.g., 'john-devenv.ps1') that contains: + + # My personal development environment script + $mySettings = '{"country":"us","artifact":"////nextminor"}' + . .\.AL-Go\localDevEnv.ps1 -containerName "mydevenv" -auth UserPassword -customSettings $mySettings + + This approach allows you to: + - Maintain your personal preferences without losing them during updates + - Share your setup with team members + - Version control your custom development configurations + - Easily switch between different development scenarios + +.PARAMETER containerName + The name of the Docker container to create. If not specified, the script will prompt for input. + Default prompts for "bcserver" if not provided. + +.PARAMETER auth + Authentication mechanism for the container. Valid values are "UserPassword" or "Windows". + If not specified, the script will prompt the user to select the authentication method. + +.PARAMETER credential + PSCredential object containing username and password for container authentication. + If not provided, the script will prompt for credentials based on the selected auth method. + +.PARAMETER licenseFileUrl + Local path or secure download URL to a Business Central license file. + For AppSource apps targeting BC versions prior to 22, a developer license with object ID permissions is required. + For PTEs, this is optional but can be useful for dependent app object IDs. + Set to "none" to skip license file input. + +.PARAMETER fromVSCode + Switch parameter indicating the script is being run from Visual Studio Code. + When specified, the script will pause at the end waiting for user input before closing. + +.PARAMETER accept_insiderEula + Switch parameter to automatically accept the insider EULA when using Business Central insider builds. + Required when working with insider artifacts. + +.PARAMETER clean + Switch parameter to create a clean development environment without compiling and publishing apps. + Useful for setting up a fresh container without deploying any applications. + +.PARAMETER customSettings + JSON string containing custom settings that override repository settings. + These settings have the highest precedence and can be used to override artifact URLs, + country settings, or other configuration without modifying repository files. + +.EXAMPLE + .\localDevEnv.ps1 + Runs the script interactively, prompting for all required parameters. + +.EXAMPLE + .\localDevEnv.ps1 -containerName "mydevenv" -auth "UserPassword" + Creates a container named "mydevenv" with username/password authentication, prompting for credentials and LicenseFile. + +.EXAMPLE + .\localDevEnv.ps1 -clean + Creates a clean development environment without compiling and publishing apps. + +.EXAMPLE + .\localDevEnv.ps1 -customSettings '{"country":"dk","artifact":"////nextminor"}' + Creates a development environment with custom settings for Denmark country and specific artifact. + +.EXAMPLE + # Programmatic setup with credentials and custom settings + $Username = "SUPER" + $Password = "" + $cred = New-Object System.Management.Automation.PSCredential ($Username, (ConvertTo-SecureString $Password -AsPlainText -Force)) + $containerName = "bcserver" + $settings = '{"artifact": "////nextminor"}' + + . ./localDevEnv.ps1 -containerName $containerName -auth UserPassword -credential $cred -accept_insiderEula -licenseFileUrl "none" -customSettings $settings + + Creates a development environment with predefined credentials, using next minor version artifact, accepting insider EULA, and no license file. + +.NOTES + - Requires Docker Desktop to be installed and running with Windows container support + - For AppSource apps, may require a developer license for BC versions prior to 22 + - Script automatically downloads required AL-Go helper modules and actions + - Modifies launch.json in VS Code workspace for Local Sandbox configuration + - Custom settings parameter allows runtime override of repository settings + +.LINK + https://aka.ms/algosettings - AL-Go Settings Documentation +#> + Param( [string] $containerName = "", [ValidateSet("UserPassword", "Windows")] @@ -11,7 +109,8 @@ Param( [string] $licenseFileUrl = "", [switch] $fromVSCode, [switch] $accept_insiderEula, - [switch] $clean + [switch] $clean, + [string] $customSettings = "" ) $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 @@ -55,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.0/Github-Helper.psm1' -folder $tmpFolder -notifyAuthenticatedAttempt -$ReadSettingsModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/ReadSettings.psm1' -folder $tmpFolder -$debugLoggingModule = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/DebugLogHelper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/.Modules/settings.schema.json' -folder $tmpFolder | Out-Null -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.0/Environment.Packages.proj' -folder $tmpFolder | 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 Import-Module $GitHubHelperPath Import-Module $ReadSettingsModule @@ -160,7 +259,8 @@ CreateDevEnv ` -credential $credential ` -licenseFileUrl $licenseFileUrl ` -accept_insiderEula:$accept_insiderEula ` - -clean:$clean + -clean:$clean ` + -customSettings $customSettings } catch { Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" diff --git a/.AL-Go/settings.json b/.AL-Go/settings.json index dea4abb..9dd7c5c 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.0/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", "country": "us", "appFolders": [], "testFolders": [], diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index eeec433..02a1580 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.0/.Modules/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", "type": "PTE", "templateUrl": "https://github.com/microsoft/AL-Go-PTE@main", - "templateSha": "359d32d051a800d7e28c3a0f97a724b16aed403b", + "templateSha": "2b0291277622df06df2856bc05768be2ebb5a6b5", "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 66dbf7a..0e6ecd2 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,67 @@ +## v8.1 + +### Custom AL-Go files + +AL-Go for GitHub now supports updating files from your custom templates via the new `customALGoFiles` setting. Read more at [customALGoFiles](https://aka.ms/algosettings#customALGoFiles). + +### Set default values for workflow inputs + +A new setting `workflowDefaultInputs` allows you to configure default values for workflow_dispatch inputs. This makes it easier to run workflows manually with consistent settings across your team. + +When you add this setting to your AL-Go settings file and run the "Update AL-Go System Files" workflow, the default values will be automatically applied to the workflow YAML files in your repository. +The default values must match the input types (boolean, number, string, or choice) defined in the workflow YAML files. + +Example configuration: + +```json +{ + "workflowDefaultInputs": [ + { "name": "directCommit", "value": true }, + { "name": "useGhTokenWorkflow", "value": true } + ] +} +``` + +This setting can be used on its own in repository settings to apply defaults to all workflows with matching input names. Alternatively, you can use it within [conditional settings](https://aka.ms/algosettings#conditional-settings) to apply defaults only to specific workflows, branches, or other conditions. + +Example using conditional settings to target specific workflows: + +```json +{ + "conditionalSettings": [ + { + "workflows": ["Create Release"], + "settings": { + "workflowDefaultInputs": [ + { "name": "directCommit", "value": true }, + { "name": "releaseType", "value": "Prerelease" } + ] + } + } + ] +} +``` + +**Important:** When multiple conditional settings blocks match and both define `workflowDefaultInputs`, the arrays are merged following AL-Go's standard behavior for complex setting types (all entries are kept). If the same input name appears in multiple entries, the last matching entry takes precedence. + +Read more at [workflowDefaultInputs](https://aka.ms/algosettings#workflowDefaultInputs). + +### Issues + +- Issue 2039 Error when deploy to environment: NewTemporaryFolder is not recognized +- Issue 1961 KeyVault access in PR pipeline +- Discussion 1911 Add support for reportSuppressedDiagnostics +- Discussion 1968 Parameter for settings passed to CreateDevEnv +- Issue 1945 Deploy Reference Documentation fails for CI/CD +- Use Runner_Temp instead of GetTempFolder whenever possible +- Issue 2016 Running Update AL-Go system files with branches wildcard `*` tries to update _origin_ +- Issue 1960 Deploy Reference Documentation fails +- Discussion 1952 Set default values on workflow_dispatch input + +### Deprecations + +- `unusedALGoSystemFiles` will be removed after October 1st 2026. Please use [`customALGoFiles.filesToExclude`](https://aka.ms/algosettings#customALGoFiles) instead. + ## v8.0 ### Mechanism to overwrite complex settings type @@ -917,7 +981,7 @@ Setting the repo setting "runs-on" to "Ubuntu-latest", followed by running Updat ### Issues - Issue #143 Commit Message for **Increment Version Number** workflow -- Issue #160 Create local DevEnv aith appDependencyProbingPaths +- Issue #160 Create local DevEnv with appDependencyProbingPaths - Issue #156 Versioningstrategy 2 doesn't use 24h format - Issue #155 Initial Add existing app fails with "Cannot find path" - Issue #152 Error when loading dependencies from releases diff --git a/.github/Test Current.settings.json b/.github/Test Current.settings.json index dbb58a5..1cc22aa 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.0/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.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 edb171b..ab3aaf0 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.0/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.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 f0c2c53..c5c2ce6 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.0/settings.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/.Modules/settings.schema.json", "artifact": "////nextminor", "cacheImageName": "", "versioningStrategy": 15 diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 316fdb4..5f03b75 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/AddExistingApp@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index ea94ec4..8b67267 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -50,24 +50,24 @@ jobs: trackALAlertsInGitHub: ${{ steps.SetALCodeAnalysisVar.outputs.trackALAlertsInGitHub }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: type,powerPlatformSolutionFolder,useGitSubmodules,trackALAlertsInGitHub @@ -81,7 +81,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -89,7 +89,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -102,7 +102,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -115,7 +115,7 @@ jobs: - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.0 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.1 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -123,7 +123,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -131,7 +131,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.0 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -141,7 +141,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -154,24 +154,24 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: 'ghTokenWorkflow' - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -212,20 +212,20 @@ jobs: name: Code Analysis Processing steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Download artifacts - ErrorLogs - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 if: (success() || failure()) with: - pattern: '*-ErrorLogs-*' + pattern: '*-*ErrorLogs-*' path: '${{ github.workspace }}/ErrorLogs/' merge-multiple: true - name: Process AL Code Analysis Logs id: ProcessALCodeAnalysisLogs if: (success() || failure()) - uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.0 + uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.1 with: shell: powershell @@ -251,15 +251,21 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Download artifacts - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + with: + shell: powershell + + - name: Determine ArtifactUrl + id: determineArtifactUrl + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 with: shell: powershell @@ -268,10 +274,11 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.0 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.1 with: shell: powershell artifacts: '.artifacts' + artifactUrl: ${{ env.artifact }} - name: Upload pages artifact uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 @@ -300,15 +307,15 @@ jobs: ALGoEnvName: ${{ matrix.environment }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Download artifacts - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder @@ -322,7 +329,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -330,7 +337,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v8.0 + uses: microsoft/AL-Go-Actions/Deploy@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -342,7 +349,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.0 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -362,28 +369,28 @@ jobs: name: Deliver to ${{ matrix.deliveryTarget }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Download artifacts - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v8.0 + uses: microsoft/AL-Go-Actions/Deliver@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -399,11 +406,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index 0d7fe6e..ca69827 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/CreateApp@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index b129b65..f1f1456 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index cae6660..ed75816 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/CreateApp@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index ba0bca2..6dd58b0 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 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.0 + uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -115,12 +115,12 @@ jobs: - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 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.0 + uses: microsoft/AL-Go-Actions/DetermineArtifactsForRelease@v8.1 id: determineArtifactsForRelease with: shell: powershell @@ -141,7 +141,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v8.0 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v8.1 with: shell: powershell buildVersion: ${{ github.event.inputs.buildVersion }} @@ -187,16 +187,16 @@ jobs: fail-fast: true steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -240,7 +240,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v8.0 + uses: microsoft/AL-Go-Actions/Deliver@v8.1 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.0 + uses: microsoft/AL-Go-Actions/Deliver@v8.1 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: ref: '${{ needs.createRelease.outputs.commitish }}' @@ -294,16 +294,16 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.1 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -325,11 +325,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 3a058a9..beeac7b 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/CreateApp@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 20dfa5a..23b8494 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -30,24 +30,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +63,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +77,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +110,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index f63a341..e0b0074 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -26,22 +26,28 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 + with: + shell: powershell + + - name: Determine ArtifactUrl + id: determineArtifactUrl + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -54,10 +60,11 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.0 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v8.1 with: shell: powershell artifacts: 'latest' + artifactUrl: ${{ env.artifact }} - name: Upload pages artifact uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 @@ -71,7 +78,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index 1503f58..cc6caf6 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.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Validate Workflow Input if: ${{ github.event_name == 'workflow_dispatch' }} - uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.0 + uses: microsoft/AL-Go-Actions/ValidateWorkflowInput@v8.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v8.1 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.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index 2629046..a50e9a0 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -30,24 +30,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +63,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +77,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +110,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index e0be2a8..06f520a 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -30,24 +30,24 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: useGitSubmodules,shortLivedArtifactsRetentionDays @@ -55,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -63,7 +63,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true submodules: ${{ env.useGitSubmodules }} @@ -77,7 +77,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -110,11 +110,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index f912dee..0c061f6 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -38,28 +38,28 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -77,7 +77,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: powershell @@ -109,7 +109,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.0/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v8.1/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -135,7 +135,7 @@ jobs: ALGoEnvName: ${{ matrix.environment }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: EnvName id: envName @@ -145,21 +145,21 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 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.0 + uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v8.1 with: shell: ${{ matrix.shell }} artifactsVersion: ${{ github.event.inputs.appVersion }} @@ -167,7 +167,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v8.0 + uses: microsoft/AL-Go-Actions/Deploy@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -180,7 +180,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.0 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -195,11 +195,11 @@ jobs: runs-on: [ windows-latest ] steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index 7b8dab0..c39b6ea 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -29,7 +29,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.0 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v8.1 Initialization: needs: [ PregateCheck ] @@ -47,25 +47,25 @@ jobs: trackALAlertsInGitHub: ${{ steps.SetALCodeAnalysisVar.outputs.trackALAlertsInGitHub }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true ref: ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }} - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: shortLivedArtifactsRetentionDays,trackALAlertsInGitHub @@ -84,7 +84,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v8.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -122,22 +122,22 @@ jobs: name: Code Analysis Processing steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: ref: ${{ format('refs/pull/{0}/head', github.event.pull_request.number) }} - name: Download artifacts - ErrorLogs - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 if: (success() || failure()) with: - pattern: '*-ErrorLogs-*' + pattern: '*-*ErrorLogs-*' path: '${{ github.workspace }}/ErrorLogs/' merge-multiple: true - name: Process AL Code Analysis Logs id: ProcessALCodeAnalysisLogs if: (success() || failure()) - uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.0 + uses: microsoft/AL-Go-Actions/ProcessALCodeAnalysisLogs@v8.1 with: shell: powershell @@ -158,7 +158,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v8.0 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -166,7 +166,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 if: success() || failure() env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index b378402..0b44e18 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: lfs: true - name: Troubleshooting - uses: microsoft/AL-Go-Actions/Troubleshooting@v8.0 + uses: microsoft/AL-Go-Actions/Troubleshooting@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index c392186..9e7d1ac 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -44,18 +44,18 @@ jobs: TemplateUrl: ${{ steps.DetermineTemplateUrl.outputs.TemplateUrl }} steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: templateUrl - name: Get Workflow Multi-Run Branches id: GetBranches - uses: microsoft/AL-Go-Actions/GetWorkflowMultiRunBranches@v8.0 + uses: microsoft/AL-Go-Actions/GetWorkflowMultiRunBranches@v8.1 with: shell: powershell includeBranches: ${{ github.event.inputs.includeBranches }} @@ -84,30 +84,30 @@ jobs: steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v8.1 with: shell: powershell - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: ref: ${{ matrix.branch }} - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v8.1 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: powershell get: commitOptions - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v8.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -134,7 +134,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.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -148,7 +148,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v8.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index e2018f7..59ceffd 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -97,13 +97,13 @@ jobs: name: ${{ inputs.projectName }} (${{ inputs.buildMode }}) steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: ref: ${{ inputs.checkoutRef }} lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v8.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -112,7 +112,7 @@ jobs: - name: Determine whether to build project id: DetermineBuildProject - uses: microsoft/AL-Go-Actions/DetermineBuildProject@v8.0 + uses: microsoft/AL-Go-Actions/DetermineBuildProject@v8.1 with: shell: ${{ inputs.shell }} skippedProjectsJson: ${{ inputs.skippedProjectsJson }} @@ -122,7 +122,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.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v8.1 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -130,7 +130,7 @@ jobs: - name: Checkout Submodules if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: ref: ${{ inputs.checkoutRef }} lfs: true @@ -140,7 +140,7 @@ jobs: - name: Determine ArtifactUrl id: determineArtifactUrl if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.0 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -155,7 +155,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v8.0 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v8.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -166,7 +166,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: microsoft/AL-Go-Actions/RunPipeline@v8.0 + uses: microsoft/AL-Go-Actions/RunPipeline@v8.1 if: steps.DetermineBuildProject.outputs.BuildIt == 'True' env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -185,7 +185,7 @@ 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.0 + uses: microsoft/AL-Go-Actions/Sign@v8.1 with: shell: ${{ inputs.shell }} azureCredentialsJson: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}' @@ -193,7 +193,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v8.0 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v8.1 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -202,7 +202,7 @@ jobs: suffix: ${{ inputs.artifactsNameSuffix }} - name: Publish artifacts - apps - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/Apps/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.AppsArtifactsName }} @@ -211,7 +211,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - dependencies - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: inputs.artifactsRetentionDays >= 0 && env.generateDependencyArtifact == 'True' && (hashFiles(format('{0}/.buildartifacts/Dependencies/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.DependenciesArtifactsName }} @@ -220,7 +220,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - test apps - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/TestApps/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestAppsArtifactsName }} @@ -229,7 +229,7 @@ jobs: retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - build output - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (success() || failure()) && (hashFiles(format('{0}/BuildOutput.txt',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BuildOutputArtifactsName }} @@ -237,7 +237,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - container event log - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (failure()) && (hashFiles(format('{0}/ContainerEventLog.evtx',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.ContainerEventLogArtifactsName }} @@ -245,7 +245,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - test results - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/TestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestResultsArtifactsName }} @@ -253,7 +253,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - bcpt test results - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/bcptTestResults.json',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BcptTestResultsArtifactsName }} @@ -261,7 +261,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test results - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultsArtifactsName }} @@ -269,7 +269,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test result details - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResultDetails/*',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultDetailsArtifactsName }} @@ -277,8 +277,8 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - ErrorLogs - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - if: inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/ErrorLogs/*',inputs.project)) != '') && env.trackALAlertsInGitHub == 'True' + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + if: (success() || failure()) && inputs.artifactsRetentionDays >= 0 && (hashFiles(format('{0}/.buildartifacts/ErrorLogs/*',inputs.project)) != '') && env.trackALAlertsInGitHub == 'True' with: name: ${{ steps.calculateArtifactsNames.outputs.ErrorLogsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/ErrorLogs/' @@ -288,7 +288,7 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.0 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -297,7 +297,7 @@ jobs: - name: Analyze BCPT Test Results id: analyzeTestResultsBCPT if: (success() || failure()) && env.doNotRunBcptTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.0 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -306,7 +306,7 @@ jobs: - name: Analyze Page Scripting Test Results id: analyzeTestResultsPageScripting if: (success() || failure()) && env.doNotRunpageScriptingTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.0 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -314,7 +314,7 @@ jobs: - name: Cleanup if: always() && steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: microsoft/AL-Go-Actions/PipelineCleanup@v8.0 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v8.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }}