diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 9b7ed41..50ba88f 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -12,22 +12,6 @@ Param( $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 try { -$webClient = New-Object System.Net.WebClient -$webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) -$webClient.Encoding = [System.Text.Encoding]::UTF8 -Write-Host "Downloading GitHub Helper module" -$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" -$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.3/Github-Helper.psm1', $GitHubHelperPath) -Write-Host "Downloading AL-Go Helper script" -$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" -$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.3/AL-Go-Helper.ps1', $ALGoHelperPath) - -Import-Module $GitHubHelperPath -. $ALGoHelperPath -local - -$baseFolder = GetBaseFolder -folder $PSScriptRoot -$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot - Clear-Host Write-Host Write-Host -ForegroundColor Yellow @' @@ -40,7 +24,26 @@ Write-Host -ForegroundColor Yellow @' '@ +$webClient = New-Object System.Net.WebClient +$webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) +$webClient.Encoding = [System.Text.Encoding]::UTF8 +$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/Github-Helper.psm1' +Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" +$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" +$webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) +$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/AL-Go-Helper.ps1' +Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" +$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" +$webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) + +Import-Module $GitHubHelperPath +. $ALGoHelperPath -local + +$baseFolder = GetBaseFolder -folder $PSScriptRoot +$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot + Write-Host @' + This script will create a cloud based development environment (Business Central SaaS Sandbox) for your project. All apps and test apps will be compiled and published to the environment in the development scope. The script will also modify launch.json to have a "Cloud Sandbox ()" configuration point to your environment. diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 990b29e..9d5d09f 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -8,29 +8,13 @@ Param( [string] $auth = "", [pscredential] $credential = $null, [string] $licenseFileUrl = "", - [string] $insiderSasToken = "", - [switch] $fromVSCode + [switch] $fromVSCode, + [switch] $accept_insiderEula ) $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 try { -$webClient = New-Object System.Net.WebClient -$webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) -$webClient.Encoding = [System.Text.Encoding]::UTF8 -Write-Host "Downloading GitHub Helper module" -$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" -$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.3/Github-Helper.psm1', $GitHubHelperPath) -Write-Host "Downloading AL-Go Helper script" -$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" -$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.3/AL-Go-Helper.ps1', $ALGoHelperPath) - -Import-Module $GitHubHelperPath -. $ALGoHelperPath -local - -$baseFolder = GetBaseFolder -folder $PSScriptRoot -$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot - Clear-Host Write-Host Write-Host -ForegroundColor Yellow @' @@ -43,7 +27,26 @@ Write-Host -ForegroundColor Yellow @' '@ +$webClient = New-Object System.Net.WebClient +$webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) +$webClient.Encoding = [System.Text.Encoding]::UTF8 +$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/Github-Helper.psm1' +Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" +$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" +$webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) +$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/AL-Go-Helper.ps1' +Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" +$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" +$webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) + +Import-Module $GitHubHelperPath +. $ALGoHelperPath -local + +$baseFolder = GetBaseFolder -folder $PSScriptRoot +$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot + Write-Host @' + This script will create a docker based local development environment for your project. NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work. @@ -54,7 +57,7 @@ The script will also modify launch.json to have a Local Sandbox configuration po '@ -$settings = ReadSettings -baseFolder $baseFolder -project $project -userName $env:USERNAME +$settings = ReadSettings -baseFolder $baseFolder -project $project -userName $env:USERNAME -workflowName 'localDevEnv' Write-Host "Checking System Requirements" $dockerProcess = (Get-Process "dockerd" -ErrorAction Ignore) @@ -131,7 +134,7 @@ CreateDevEnv ` -auth $auth ` -credential $credential ` -licenseFileUrl $licenseFileUrl ` - -insiderSasToken $insiderSasToken + -accept_insiderEula:$accept_insiderEula } catch { Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" diff --git a/.github/RELEASENOTES.copy.md b/.github/RELEASENOTES.copy.md index d86bd83..0ec44dc 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,27 @@ +## v4.0 + +### Removal of the InsiderSasToken + +As of October 1st 2023, Business Central insider builds are now publicly available. When creating local containers with the insider builds, you will have to accept the insider EULA (https://go.microsoft.com/fwlink/?linkid=2245051) in order to continue. + +AL-Go for GitHub allows you to build and test using insider builds without any explicit approval, but please note that the insider artifacts contains the insider Eula and you automatically accept this when using the builds. + +### Issues +- Issue 730 Support for external rulesets. +- Issue 739 Workflow specific KeyVault settings doesn't work for localDevEnv +- Using self-hosted runners while using Azure KeyVault for secrets or signing might fail with C:\Modules doesn't exist +- PullRequestHandler wasn't triggered if only .md files where changes. This lead to PRs which couldn't be merged if a PR status check was mandatory. +- Artifacts names for PR Builds were using the merge branch instead of the head branch. + +### New Settings +- `enableExternalRulesets`: set this setting to true if you want to allow AL-Go to automatically download external references in rulesets. +- `deliverTo`: is not really new, but has new properties and wasn't documented. The complete list of properties is here (note that some properties are deliveryTarget specific): + - **Branches** = an array of branch patterns, which are allowed to deliver to this deliveryTarget. (Default [ "main" ]) + - **CreateContainerIfNotExist** = *[Only for DeliverToStorage]* Create Blob Storage Container if it doesn't already exist. (Default false) + +### Deployment +Environment URL is now displayed underneath the environment being deployed to in the build summary. For Custom Deployment, the script can set the GitHub Output variable `environmentUrl` in order to show a custom URL. + ## v3.3 ### Issues diff --git a/.github/Test Next Major.settings.json b/.github/Test Next Major.settings.json index a5a125a..1fc329d 100644 --- a/.github/Test Next Major.settings.json +++ b/.github/Test Next Major.settings.json @@ -1,5 +1,5 @@ { - "artifact": "////nextmajor/{INSIDERSASTOKEN}", + "artifact": "////nextmajor", "cacheImageName": "", "versioningStrategy": 15 } diff --git a/.github/Test Next Minor.settings.json b/.github/Test Next Minor.settings.json index 91469d1..127bce7 100644 --- a/.github/Test Next Minor.settings.json +++ b/.github/Test Next Minor.settings.json @@ -1,5 +1,5 @@ { - "artifact": "////nextminor/{INSIDERSASTOKEN}", + "artifact": "////nextminor", "cacheImageName": "", "versioningStrategy": 15 } diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 10d048f..112f07c 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -41,19 +41,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0090" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -61,7 +61,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: microsoft/AL-Go-Actions/AddExistingApp@v3.3 + uses: microsoft/AL-Go-Actions/AddExistingApp@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -72,7 +72,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0090" diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 7e534ea..759c7a0 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -45,14 +45,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0091" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell get: type @@ -64,14 +64,14 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v3.3 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v4.0 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -79,7 +79,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -87,7 +87,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v3.3 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -97,7 +97,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v3.3 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v4.0 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -113,13 +113,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell get: templateUrl - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v3.3 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v4.0 with: shell: powershell parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }} @@ -143,7 +143,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - secrets: 'licenseFileUrl,insiderSasToken,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' + secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} signArtifacts: true @@ -157,6 +157,7 @@ jobs: name: Deploy to ${{ matrix.environment }} environment: name: ${{ matrix.environment }} + url: ${{ steps.Deploy.outputs.environmentUrl }} steps: - name: Checkout uses: actions/checkout@v3 @@ -167,7 +168,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell @@ -180,14 +181,15 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - name: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v3.3 + id: Deploy + uses: microsoft/AL-Go-Actions/Deploy@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -216,20 +218,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v3.3 + uses: microsoft/AL-Go-Actions/Deliver@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -249,7 +251,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0091" diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index 56dded8..97c3285 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -51,20 +51,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0092" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -72,7 +72,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: microsoft/AL-Go-Actions/CreateApp@v3.3 + uses: microsoft/AL-Go-Actions/CreateApp@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -87,7 +87,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0092" diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index 3f4f859..391d83f 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -50,20 +50,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0093" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -82,7 +82,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/v3.3/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -104,13 +104,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -129,7 +129,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v3.3 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -142,7 +142,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0093" diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index 59bf7fe..5f49f87 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -57,19 +57,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0102" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -77,7 +77,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v3.3 + uses: microsoft/AL-Go-Actions/CreateApp@v4.0 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@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0102" diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index e8ee3ad..fc5e855 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -69,26 +69,26 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0094" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell get: templateUrl,repoName - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v3.3 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v4.0 with: shell: powershell parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -173,7 +173,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v3.3 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v4.0 with: shell: powershell parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -216,13 +216,13 @@ jobs: uses: actions/checkout@v3 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -259,7 +259,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v3.3 + uses: microsoft/AL-Go-Actions/Deliver@v4.0 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -272,7 +272,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: microsoft/AL-Go-Actions/Deliver@v3.3 + uses: microsoft/AL-Go-Actions/Deliver@v4.0 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -309,13 +309,13 @@ jobs: needs: [ CreateRelease, UploadArtifacts ] steps: - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -323,7 +323,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v3.3 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -341,7 +341,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0094" diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 845c4a8..cac7067 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -53,19 +53,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0095" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -73,7 +73,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v3.3 + uses: microsoft/AL-Go-Actions/CreateApp@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -88,7 +88,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0095" diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 9d7c7d2..dabbacf 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -34,14 +34,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0101" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell @@ -52,7 +52,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -75,7 +75,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - secrets: 'licenseFileUrl,insiderSasToken,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' + secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} artifactsNameSuffix: 'Current' @@ -89,7 +89,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0101" diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index f1568bc..89e4680 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -41,19 +41,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0096" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -61,7 +61,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v3.3 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v4.0 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -72,7 +72,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0096" diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index 117de86..191a9ce 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -34,14 +34,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0099" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell @@ -52,7 +52,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -75,7 +75,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - secrets: 'licenseFileUrl,insiderSasToken,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' + secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} artifactsNameSuffix: 'NextMajor' @@ -89,7 +89,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0099" diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 7562090..267f179 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -34,14 +34,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0100" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell @@ -52,7 +52,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -75,7 +75,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - secrets: 'licenseFileUrl,insiderSasToken,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' + secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} artifactsNameSuffix: 'NextMinor' @@ -89,7 +89,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0100" diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 69c7b76..9fe83ed 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -38,20 +38,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0097" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v3.3 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v4.0 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -69,7 +69,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: powershell @@ -101,7 +101,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/v3.3/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v4.0/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -117,6 +117,7 @@ jobs: name: Deploy to ${{ matrix.environment }} environment: name: ${{ matrix.environment }} + url: ${{ steps.Deploy.outputs.environmentUrl }} env: deviceCode: ${{ needs.Initialization.outputs.deviceCode }} steps: @@ -131,20 +132,21 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - name: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v3.3 + id: Deploy + uses: microsoft/AL-Go-Actions/Deploy@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -164,7 +166,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0097" diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index bda0479..28ecdd8 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -2,8 +2,6 @@ name: 'Pull Request Build' on: pull_request_target: - paths-ignore: - - '**.md' branches: [ 'main' ] concurrency: @@ -29,7 +27,7 @@ jobs: if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request') runs-on: [ windows-latest ] steps: - - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v3.3 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v4.0 Initialization: needs: [ PregateCheck ] @@ -52,14 +50,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0104" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell @@ -70,7 +68,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.3 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v4.0 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -94,7 +92,7 @@ jobs: projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - secrets: 'licenseFileUrl,insiderSasToken,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' + secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} StatusCheck: @@ -105,7 +103,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v3.3 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v4.0 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index 633d6bf..f807081 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -32,20 +32,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 with: shell: powershell eventId: "DO0098" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -77,7 +77,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_ENV -Value "DirectCommit=$directCommit" - name: Update AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v3.3 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v4.0 with: shell: powershell parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -88,7 +88,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 with: shell: powershell eventId: "DO0098" diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index 6bba9a8..f0d8dae 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -87,26 +87,24 @@ jobs: lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v3.3 + uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,artifact + get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: microsoft/AL-Go-Actions/ReadSecrets@v3.3 + uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ inputs.secrets }},appDependencyProbingPathsSecrets' - name: Determine ArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v3.3 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v4.0 id: determineArtifactUrl - env: - Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} @@ -121,7 +119,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v3.3 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -132,7 +130,7 @@ jobs: - name: Run pipeline id: RunPipeline - uses: microsoft/AL-Go-Actions/RunPipeline@v3.3 + uses: microsoft/AL-Go-Actions/RunPipeline@v4.0 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -148,7 +146,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && env.keyVaultCodesignCertificateName != '' id: sign - uses: microsoft/AL-Go-Actions/Sign@v3.3 + uses: microsoft/AL-Go-Actions/Sign@v4.0 with: shell: ${{ needs.Initialization.outputs.githubRunnerShell }} azureCredentialsJson: ${{ secrets.AZURE_CREDENTIALS }} @@ -157,13 +155,12 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v3.3 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v4.0 if: success() || failure() with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} buildMode: ${{ inputs.buildMode }} - branchName: ${{ github.ref_name }} suffix: ${{ inputs.artifactsNameSuffix }} - name: Upload thisbuild artifacts - apps @@ -242,8 +239,8 @@ jobs: - name: Analyze Test Results id: analyzeTestResults - if: success() || failure() - uses: microsoft/AL-Go-Actions/AnalyzeTests@v3.3 + if: (success() || failure()) && env.doNotRunTests == 'False' + uses: microsoft/AL-Go-Actions/AnalyzeTests@v4.0 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} @@ -251,7 +248,7 @@ jobs: - name: Cleanup if: always() - uses: microsoft/AL-Go-Actions/PipelineCleanup@v3.3 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v4.0 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}