diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 1afe609..cf0ec90 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -42,9 +42,9 @@ 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/v6.1/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 358732d..62163dd 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -46,9 +46,9 @@ 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/v6.1/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/.github/RELEASENOTES.copy.md b/.github/RELEASENOTES.copy.md index a7d36bd..93e24db 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,25 @@ +## v6.2 + +### Issues + +- Issue 1296 Make property "appFolders" optional +- Issue 1344 Experimental feature "git submodules" seems to be a breaking change +- Issue 1305 Extra telemetry Property RepositoryOwner and RepositoryName¨ +- Add RunnerEnvironment to Telemetry +- Output a notice, not a warning, when there are no available updates for AL-Go for GitHub + +### New Repository Settings + +- `useGitSubmodules` can be either `true` or `recursive` if you want to enable Git Submodules in your repository. If your Git submodules resides in a private repository, you need to create a secret called `gitSubmodulesToken` containing a PAT with access to the submodule repositories. Like with all other secrets, you can also create a setting called `gitSubmodulesTokenSecretName` and specify the name of another secret, with these permissions (f.ex. ghTokenWorkflow). +- `commitOptions` - is a structure defining how you want AL-Go to handle automated commits or pull requests coming from AL-Go (e.g. for Update AL-Go System Files). The structure contains the following properties + - `messageSuffix` : A string you want to append to the end of commits/pull requests created by AL-Go. This can be useful if you are using the Azure Boards integration (or similar integration) to link commits to workitems. + - `pullRequestAutoMerge` : A boolean defining whether you want AL-Go pull requests to be set to auto-complete. This will auto-complete the pull requests once all checks are green and all required reviewers have approved. + - `pullRequestLabels` : A list of labels to add to the pull request. The labels need to be created in the repository before they can be applied. + +### Support for Git submodules + +In v6.1 we added experimental support for Git submodules - this did however only work if the submodules was in a public repository. In this version, you can use the `useGitSubmodules` setting to control whether you want to use Git Submodules and the `gitSubmodulesToken` secret to allow permission to read these repositories. + ## v6.1 ### Issues diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 989804b..6f7547e 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -41,7 +41,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -50,18 +50,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -69,7 +69,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: microsoft/AL-Go-Actions/AddExistingApp@v6.1 + uses: microsoft/AL-Go-Actions/AddExistingApp@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 3eb43af..f556e11 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -45,7 +45,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -53,20 +53,36 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: lfs: true - submodules: recursive - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - get: type, powerPlatformSolutionFolder + get: type,powerPlatformSolutionFolder,useGitSubmodules + + - name: Read submodules token + id: ReadSubmodulesToken + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: '-gitSubmodulesToken' + + - name: Checkout Submodules + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + lfs: true + submodules: ${{ env.useGitSubmodules }} + token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}' - name: Determine Workflow Depth id: DetermineWorkflowDepth @@ -75,7 +91,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -88,7 +104,7 @@ jobs: - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -96,7 +112,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -104,7 +120,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -114,7 +130,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -130,13 +146,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: templateUrl - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -202,7 +218,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell @@ -211,7 +227,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.1 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.2 with: shell: powershell artifacts: '.artifacts' @@ -248,7 +264,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder @@ -262,7 +278,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -270,7 +286,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v6.1 + uses: microsoft/AL-Go-Actions/Deploy@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -282,7 +298,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.1 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -310,20 +326,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v6.1 + uses: microsoft/AL-Go-Actions/Deliver@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -343,7 +359,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index 70bd0b0..0e1eb3e 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -51,7 +51,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -60,19 +60,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: microsoft/AL-Go-Actions/CreateApp@v6.1 + uses: microsoft/AL-Go-Actions/CreateApp@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index 1217686..2e5992c 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -50,7 +50,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -59,19 +59,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -90,7 +90,7 @@ jobs: Write-Host "AdminCenterApiCredentials not provided, initiating Device Code flow" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient = New-Object System.Net.WebClient - $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -112,13 +112,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -137,7 +137,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v6.1 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index 75aada7..8dc7895 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -57,7 +57,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -66,18 +66,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -85,7 +85,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v6.1 + uses: microsoft/AL-Go-Actions/CreateApp@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -100,7 +100,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 1d10878..5ff505b 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -73,7 +73,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -82,20 +82,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: templateUrl,repoName,type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -104,12 +104,12 @@ jobs: - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -203,7 +203,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v6.1 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v6.2 with: shell: powershell tag_name: ${{ github.event.inputs.tag }} @@ -245,13 +245,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -289,7 +289,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v6.1 + uses: microsoft/AL-Go-Actions/Deliver@v6.2 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -302,7 +302,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: microsoft/AL-Go-Actions/Deliver@v6.1 + uses: microsoft/AL-Go-Actions/Deliver@v6.2 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -346,13 +346,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -360,7 +360,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.1 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -377,7 +377,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index a6c59af..3c6da24 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -53,7 +53,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -62,18 +62,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -81,7 +81,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v6.1 + uses: microsoft/AL-Go-Actions/CreateApp@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -95,7 +95,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 1df57d0..d0c274c 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -29,7 +29,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -37,19 +37,36 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: lfs: true - submodules: recursive - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell + get: useGitSubmodules + + - name: Read submodules token + id: ReadSubmodulesToken + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: '-gitSubmodulesToken' + + - name: Checkout Submodules + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + lfs: true + submodules: ${{ env.useGitSubmodules }} + token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}' - name: Determine Workflow Depth id: DetermineWorkflowDepth @@ -58,7 +75,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -94,7 +111,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index f194e65..5fdea14 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -30,18 +30,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -54,7 +54,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.1 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.2 with: shell: powershell artifacts: 'latest' @@ -71,7 +71,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index 479fce3..a45d19b 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -41,7 +41,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -50,18 +50,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -69,7 +69,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.1 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.2 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index d4d701c..6faab1e 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -29,7 +29,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -37,19 +37,36 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: lfs: true - submodules: recursive - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell + get: useGitSubmodules + + - name: Read submodules token + id: ReadSubmodulesToken + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: '-gitSubmodulesToken' + + - name: Checkout Submodules + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + lfs: true + submodules: ${{ env.useGitSubmodules }} + token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}' - name: Determine Workflow Depth id: DetermineWorkflowDepth @@ -58,7 +75,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -94,7 +111,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 3b1777e..67ee7d8 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -29,7 +29,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -37,19 +37,36 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: lfs: true - submodules: recursive - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell + get: useGitSubmodules + + - name: Read submodules token + id: ReadSubmodulesToken + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: '-gitSubmodulesToken' + + - name: Checkout Submodules + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + lfs: true + submodules: ${{ env.useGitSubmodules }} + token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}' - name: Determine Workflow Depth id: DetermineWorkflowDepth @@ -58,7 +75,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -94,7 +111,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 78201d2..f3721ce 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -36,7 +36,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: powershell @@ -107,7 +107,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/v6.1/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -141,21 +141,21 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext' - name: Get Artifacts for deployment - uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v6.1 + uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v6.2 with: shell: ${{ matrix.shell }} artifactsVersion: ${{ github.event.inputs.appVersion }} @@ -163,7 +163,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v6.1 + uses: microsoft/AL-Go-Actions/Deploy@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -175,7 +175,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.1 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -194,7 +194,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullPowerPlatformChanges.yaml b/.github/workflows/PullPowerPlatformChanges.yaml index 60af145..3d31499 100644 --- a/.github/workflows/PullPowerPlatformChanges.yaml +++ b/.github/workflows/PullPowerPlatformChanges.yaml @@ -38,7 +38,7 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell @@ -51,14 +51,14 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -67,7 +67,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -89,7 +89,7 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "solutionFolder=$solutionFolder" - name: Pull changes from Power Platform environment - uses: microsoft/AL-Go-Actions/PullPowerPlatformChanges@v6.1 + uses: microsoft/AL-Go-Actions/PullPowerPlatformChanges@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -102,7 +102,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index 295627d..b70a5d8 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -28,7 +28,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@v6.1 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v6.2 Initialization: needs: [ PregateCheck ] @@ -43,7 +43,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -55,13 +55,13 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell @@ -72,7 +72,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -108,7 +108,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v6.1 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -116,7 +116,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 if: success() || failure() env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/PushPowerPlatformChanges.yaml b/.github/workflows/PushPowerPlatformChanges.yaml index 670876a..f7731cf 100644 --- a/.github/workflows/PushPowerPlatformChanges.yaml +++ b/.github/workflows/PushPowerPlatformChanges.yaml @@ -29,7 +29,7 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell @@ -43,14 +43,14 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -58,7 +58,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -80,7 +80,7 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "solutionFolder=$solutionFolder" - name: Export and push changes to Power Platform - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.1 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -91,7 +91,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 0337b67..6db22bc 100644 --- a/.github/workflows/Troubleshooting.yaml +++ b/.github/workflows/Troubleshooting.yaml @@ -30,7 +30,7 @@ jobs: lfs: true - name: Troubleshooting - uses: microsoft/AL-Go-Actions/Troubleshooting@v6.1 + uses: microsoft/AL-Go-Actions/Troubleshooting@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index f228f8d..306b90c 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -36,7 +36,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 with: shell: powershell @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -93,7 +93,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@v6.1 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 with: shell: powershell token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -104,7 +104,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index 8aec2e8..aa1f5c5 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -91,26 +91,34 @@ jobs: with: ref: ${{ inputs.checkoutRef }} lfs: true - submodules: recursive - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact,generateDependencyArtifact,trustedSigning + get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact,generateDependencyArtifact,trustedSigning,useGitSubmodules - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} - getSecrets: '${{ inputs.secrets }},appDependencySecrets,AZURE_CREDENTIALS' + getSecrets: '${{ inputs.secrets }},appDependencySecrets,AZURE_CREDENTIALS,-gitSubmodulesToken' + + - name: Checkout Submodules + if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ inputs.checkoutRef }} + lfs: true + submodules: ${{ env.useGitSubmodules }} + token: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).gitSubmodulesToken }}' - name: Determine ArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v6.1 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v6.2 id: determineArtifactUrl with: shell: ${{ inputs.shell }} @@ -118,14 +126,14 @@ jobs: - name: Cache Business Central Artifacts if: env.useCompilerFolder == 'True' && inputs.useArtifactCache && env.artifactCacheKey - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 with: path: .artifactcache key: ${{ env.artifactCacheKey }} - name: Download Project Dependencies id: DownloadProjectDependencies - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v6.1 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -136,7 +144,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: microsoft/AL-Go-Actions/RunPipeline@v6.1 + uses: microsoft/AL-Go-Actions/RunPipeline@v6.2 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -151,7 +159,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && (env.keyVaultCodesignCertificateName != '' || (fromJson(env.trustedSigning).Endpoint != '' && fromJson(env.trustedSigning).Account != '' && fromJson(env.trustedSigning).CertificateProfile != '')) id: sign - uses: microsoft/AL-Go-Actions/Sign@v6.1 + uses: microsoft/AL-Go-Actions/Sign@v6.2 with: shell: ${{ inputs.shell }} azureCredentialsJson: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}' @@ -159,7 +167,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.1 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.2 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -269,14 +277,14 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v6.1 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v6.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - name: Cleanup if: always() - uses: microsoft/AL-Go-Actions/PipelineCleanup@v6.1 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v6.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} diff --git a/.github/workflows/_BuildPowerPlatformSolution.yaml b/.github/workflows/_BuildPowerPlatformSolution.yaml index 2cfa921..e2108af 100644 --- a/.github/workflows/_BuildPowerPlatformSolution.yaml +++ b/.github/workflows/_BuildPowerPlatformSolution.yaml @@ -61,14 +61,14 @@ jobs: lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.1 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} get: type,powerPlatformSolutionFolder,appRevision,appBuild - name: Build - uses: microsoft/AL-Go-Actions/BuildPowerPlatform@v6.1 + uses: microsoft/AL-Go-Actions/BuildPowerPlatform@v6.2 with: shell: ${{ inputs.shell }} solutionFolder: ${{ inputs.project }} @@ -79,7 +79,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.1 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.2 if: success() || failure() with: shell: ${{ inputs.shell }}