diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index b59964b..0c1f2a9 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -1,6 +1,6 @@ { "type": "PTE", - "templateUrl": "https://github.com/freddydk/AL-Go@partial", + "templateUrl": "https://github.com/freddydk/AL-Go@thisbuild", "CICDPushBranches": [ "main", "release/*", @@ -19,6 +19,6 @@ "gitHubRunner": "windows-latest", "githubRunnerShell": "pwsh", "generateDependencyArtifact": true, - "templateSha": "6ce000758f0c8cb3d5b163e7d9c5c69acf1a4ae5", + "templateSha": "f85460e3c1e06f89ef4faf2ee1c6f0fd2e790314", "RepoVersion": "1.0" } diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 94afa5a..f762ea6 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -41,7 +41,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -50,18 +50,18 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -69,7 +69,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: freddydk/AL-Go/Actions/AddExistingApp@partial + uses: freddydk/AL-Go/Actions/AddExistingApp@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 0d9c3b5..a7e13a6 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -1,6 +1,5 @@ name: ' CI/CD' - on: workflow_dispatch: push: @@ -40,16 +39,14 @@ jobs: githubRunner: ${{ steps.ReadSettings.outputs.GitHubRunnerJson }} githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }} projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }} - skippedProjects: ${{ steps.determineProjectsToBuild.outputs.SkippedProjectsJson }} projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} - baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }} - baselineWorkflowSHA: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowSHA }} - workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }} + workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -60,13 +57,13 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: type,powerPlatformSolutionFolder,useGitSubmodules @@ -74,7 +71,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -92,14 +89,14 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90" - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} - publishSkippedProjectArtifacts: 'true' - name: Determine PowerPlatform Solution Folder id: DeterminePowerPlatformSolutionFolder @@ -109,7 +106,7 @@ jobs: - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@partial + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@thisbuild with: shell: pwsh projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -117,7 +114,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -125,7 +122,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@partial + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -135,7 +132,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@partial + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: @@ -151,13 +148,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: templateUrl - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@partial + uses: freddydk/AL-Go/Actions/CheckForUpdates@thisbuild with: shell: pwsh templateUrl: ${{ env.templateUrl }} @@ -179,13 +176,9 @@ jobs: project: ${{ matrix.project }} projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} - skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} 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/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} signArtifacts: true useArtifactCache: true @@ -205,13 +198,9 @@ jobs: project: ${{ matrix.project }} projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} - skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} 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/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} signArtifacts: true useArtifactCache: true @@ -231,13 +220,9 @@ jobs: project: ${{ matrix.project }} projectName: ${{ matrix.projectName }} buildMode: ${{ matrix.buildMode }} - skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} - baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} 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/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} signArtifacts: true useArtifactCache: true @@ -264,7 +249,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh @@ -273,7 +258,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@partial + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@thisbuild with: shell: pwsh artifacts: '.artifacts' @@ -310,7 +295,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder @@ -324,7 +309,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -332,7 +317,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@partial + uses: freddydk/AL-Go/Actions/Deploy@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -344,7 +329,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: freddydk/AL-Go/Actions/DeployPowerPlatform@partial + uses: freddydk/AL-Go/Actions/DeployPowerPlatform@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -372,20 +357,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: freddydk/AL-Go/Actions/Deliver@partial + uses: freddydk/AL-Go/Actions/Deliver@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -405,7 +390,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index e881c79..20b293b 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -51,7 +51,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -60,19 +60,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: type - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: freddydk/AL-Go/Actions/CreateApp@partial + uses: freddydk/AL-Go/Actions/CreateApp@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index 40e1c08..e780f5f 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: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -59,19 +59,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh 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/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/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: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -137,7 +137,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@partial + uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index eeb2085..098ed72 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -57,7 +57,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -66,18 +66,18 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -85,7 +85,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: freddydk/AL-Go/Actions/CreateApp@partial + uses: freddydk/AL-Go/Actions/CreateApp@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -100,7 +100,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index e712310..21c7eea 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -1,9 +1,6 @@ name: ' Create release' run-name: "Create release - Version ${{ inputs.tag }}" -concurrency: - group: ${{ github.workflow }} - on: workflow_dispatch: inputs: @@ -58,6 +55,9 @@ permissions: id-token: write pull-requests: write +concurrency: + group: ${{ github.workflow }} + defaults: run: shell: pwsh @@ -78,7 +78,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -87,20 +87,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: templateUrl,repoName,type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -109,12 +109,12 @@ jobs: - name: Determine Projects id: determineProjects - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@partial + uses: freddydk/AL-Go/Actions/CheckForUpdates@thisbuild with: shell: pwsh templateUrl: ${{ env.templateUrl }} @@ -208,7 +208,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: freddydk/AL-Go/Actions/CreateReleaseNotes@partial + uses: freddydk/AL-Go/Actions/CreateReleaseNotes@thisbuild with: shell: pwsh tag_name: ${{ github.event.inputs.tag }} @@ -250,13 +250,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -294,7 +294,7 @@ jobs: }); - name: Deliver to NuGet - uses: freddydk/AL-Go/Actions/Deliver@partial + uses: freddydk/AL-Go/Actions/Deliver@thisbuild if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -307,7 +307,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: freddydk/AL-Go/Actions/Deliver@partial + uses: freddydk/AL-Go/Actions/Deliver@thisbuild if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -351,13 +351,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -365,7 +365,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@partial + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -383,7 +383,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 36719dc..ec36b3d 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -53,7 +53,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -62,18 +62,18 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -81,7 +81,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: freddydk/AL-Go/Actions/CreateApp@partial + uses: freddydk/AL-Go/Actions/CreateApp@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -95,7 +95,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 1d2427c..e28b7e7 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -40,13 +41,13 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: useGitSubmodules @@ -54,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90" - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'Current' Build2: @@ -119,7 +121,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'Current' Build: @@ -140,7 +142,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'Current' PostProcess: @@ -153,7 +155,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index 3f876ac..a1b94e2 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -30,18 +30,18 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@partial + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: @@ -54,7 +54,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@partial + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@thisbuild with: shell: pwsh artifacts: 'latest' @@ -71,7 +71,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index 7bf031c..23e35e0 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -46,7 +46,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -55,18 +55,18 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -74,7 +74,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@partial + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@thisbuild with: shell: pwsh token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -85,7 +85,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index f8416fa..66a7987 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -40,13 +41,13 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: useGitSubmodules @@ -54,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90" - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMajor' Build2: @@ -119,7 +121,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMajor' Build: @@ -140,7 +142,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMajor' PostProcess: @@ -153,7 +155,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 455277c..549c050 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -40,13 +41,13 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: useGitSubmodules @@ -54,7 +55,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90" - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMinor' Build2: @@ -119,7 +121,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMinor' Build: @@ -140,7 +142,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'NextMinor' PostProcess: @@ -153,7 +155,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index ab34db0..660da17 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: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@partial + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: pwsh @@ -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/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/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: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild 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: freddydk/AL-Go/Actions/GetArtifactsForDeployment@partial + uses: freddydk/AL-Go/Actions/GetArtifactsForDeployment@thisbuild with: shell: ${{ matrix.shell }} artifactsVersion: ${{ github.event.inputs.appVersion }} @@ -163,7 +163,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@partial + uses: freddydk/AL-Go/Actions/Deploy@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -175,7 +175,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: freddydk/AL-Go/Actions/DeployPowerPlatform@partial + uses: freddydk/AL-Go/Actions/DeployPowerPlatform@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -194,7 +194,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index 68729d3..7ce3430 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: freddydk/AL-Go/Actions/VerifyPRChanges@partial + - uses: freddydk/AL-Go/Actions/VerifyPRChanges@thisbuild Initialization: needs: [ PregateCheck ] @@ -39,12 +39,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }} - baselineWorkflowSHA: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowSHA }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -56,13 +55,13 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh @@ -73,7 +72,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@partial + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@thisbuild with: shell: pwsh maxBuildDepth: ${{ env.workflowDepth }} @@ -97,11 +96,9 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'PR${{ github.event.number }}' - useArtifactCache: true Build2: needs: [ Initialization, Build1 ] @@ -122,11 +119,9 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'PR${{ github.event.number }}' - useArtifactCache: true Build: needs: [ Initialization, Build2, Build1 ] @@ -147,11 +142,9 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }} secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ needs.Initialization.outputs.artifactsRetentionDays }} artifactsNameSuffix: 'PR${{ github.event.number }}' - useArtifactCache: true StatusCheck: needs: [ Initialization, Build ] @@ -161,7 +154,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@partial + uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: @@ -169,7 +162,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild if: success() || failure() env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 5bd7b2c..0dfee51 100644 --- a/.github/workflows/Troubleshooting.yaml +++ b/.github/workflows/Troubleshooting.yaml @@ -30,7 +30,7 @@ jobs: lfs: true - name: Troubleshooting - uses: freddydk/AL-Go/Actions/Troubleshooting@partial + uses: freddydk/AL-Go/Actions/Troubleshooting@thisbuild with: shell: pwsh gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index 1200c14..a25a4bf 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: templateUrl: - description: Template Repository URL (current is https://github.com/freddydk/AL-Go@partial) + description: Template Repository URL (current is https://github.com/freddydk/AL-Go@thisbuild) required: false default: '' downloadLatest: @@ -36,7 +36,7 @@ jobs: runs-on: [ ubuntu-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@partial + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@thisbuild with: shell: pwsh @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@partial + uses: freddydk/AL-Go/Actions/WorkflowInitialize@thisbuild with: shell: pwsh - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: pwsh get: templateUrl - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: pwsh 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: freddydk/AL-Go/Actions/CheckForUpdates@partial + uses: freddydk/AL-Go/Actions/CheckForUpdates@thisbuild with: shell: pwsh token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -104,7 +104,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@partial + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@thisbuild env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index 20d6975..8df5b1c 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -27,11 +27,6 @@ on: description: Friendly name of the built project required: true type: string - skippedProjectsJson: - description: An array of AL-Go projects to skip in compressed JSON format - required: false - default: '[]' - type: string projectDependenciesJson: description: Dependencies of the built project in compressed Json format required: false @@ -46,24 +41,15 @@ on: required: false default: '0' type: string - baselineWorkflowSHA: - description: SHA of the baseline workflow run - required: false - default: '' - type: string secrets: description: A comma-separated string with the names of the secrets, required for the workflow. required: false default: '' type: string - publishThisBuildArtifacts: - description: Flag indicating whether this build artifacts should be published - type: boolean - default: false - publishArtifacts: - description: Flag indicating whether the artifacts should be published - type: boolean - default: false + artifactsRetentionDays: + description: Number of days to keep the artifacts + type: number + default: 0 artifactsNameSuffix: description: Suffix to add to the artifacts names required: false @@ -103,25 +89,16 @@ jobs: lfs: true - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@partial + uses: freddydk/AL-Go/Actions/ReadSettings@thisbuild with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact,generateDependencyArtifact,trustedSigning,useGitSubmodules - - name: Determine whether to build project - id: DetermineBuildProject - uses: freddydk/AL-Go/Actions/DetermineBuildProject@partial - with: - shell: ${{ inputs.shell }} - skippedProjectsJson: ${{ inputs.skippedProjectsJson }} - project: ${{ inputs.project }} - baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - - name: Read secrets id: ReadSecrets - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && github.event_name != 'pull_request' - uses: freddydk/AL-Go/Actions/ReadSecrets@partial + if: github.event_name != 'pull_request' + uses: freddydk/AL-Go/Actions/ReadSecrets@thisbuild with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -137,15 +114,14 @@ jobs: token: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).gitSubmodulesToken }}' - name: Determine ArtifactUrl + uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@thisbuild id: determineArtifactUrl - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@partial with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - name: Cache Business Central Artifacts - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' && env.useCompilerFolder == 'True' && inputs.useArtifactCache && env.artifactCacheKey + if: env.useCompilerFolder == 'True' && inputs.useArtifactCache && env.artifactCacheKey uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 with: path: .artifactcache @@ -153,8 +129,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' - uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@partial + uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -165,8 +140,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: freddydk/AL-Go/Actions/RunPipeline@partial - if: steps.DetermineBuildProject.outputs.BuildIt == 'True' + uses: freddydk/AL-Go/Actions/RunPipeline@thisbuild env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -177,13 +151,11 @@ jobs: buildMode: ${{ inputs.buildMode }} installAppsJson: ${{ steps.DownloadProjectDependencies.outputs.DownloadedApps }} installTestAppsJson: ${{ steps.DownloadProjectDependencies.outputs.DownloadedTestApps }} - baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - baselineWorkflowSHA: ${{ inputs.baselineWorkflowSHA }} - name: Sign + if: inputs.signArtifacts && env.doNotSignApps == 'False' && (env.keyVaultCodesignCertificateName != '' || (fromJson(env.trustedSigning).Endpoint != '' && fromJson(env.trustedSigning).Account != '' && fromJson(env.trustedSigning).CertificateProfile != '')) 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: freddydk/AL-Go/Actions/Sign@partial + uses: freddydk/AL-Go/Actions/Sign@thisbuild with: shell: ${{ inputs.shell }} azureCredentialsJson: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}' @@ -191,7 +163,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: freddydk/AL-Go/Actions/CalculateArtifactNames@partial + uses: freddydk/AL-Go/Actions/CalculateArtifactNames@thisbuild if: success() || failure() with: shell: ${{ inputs.shell }} @@ -199,59 +171,35 @@ jobs: buildMode: ${{ inputs.buildMode }} suffix: ${{ inputs.artifactsNameSuffix }} - - name: Upload thisbuild artifacts - apps - if: inputs.publishThisBuildArtifacts && (hashFiles(format('{0}/.buildartifacts/Apps/*',inputs.project)) != '') - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildAppsArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/Apps/' - if-no-files-found: ignore - retention-days: 1 - - - name: Upload thisbuild artifacts - dependencies - if: inputs.publishThisBuildArtifacts && (hashFiles(format('{0}/.buildartifacts/Dependencies/*',inputs.project)) != '') - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildDependenciesArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/Dependencies/' - if-no-files-found: ignore - retention-days: 1 - - - name: Upload thisbuild artifacts - test apps - if: inputs.publishThisBuildArtifacts && (hashFiles(format('{0}/.buildartifacts/TestApps/*',inputs.project)) != '') - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildTestAppsArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/TestApps/' - if-no-files-found: ignore - retention-days: 1 - - name: Publish artifacts - apps - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts && (hashFiles(format('{0}/.buildartifacts/Apps/*',inputs.project)) != '') + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + if: inputs.artifactsRetentionDays > 0 with: name: ${{ steps.calculateArtifactsNames.outputs.AppsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/Apps/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - dependencies - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts && env.generateDependencyArtifact == 'True' && (hashFiles(format('{0}/.buildartifacts/Dependencies/*',inputs.project)) != '') + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + if: inputs.artifactsRetentionDays > 0 && env.generateDependencyArtifact == 'True' with: name: ${{ steps.calculateArtifactsNames.outputs.DependenciesArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/Dependencies/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - test apps - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts && (hashFiles(format('{0}/.buildartifacts/TestApps/*',inputs.project)) != '') + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + if: inputs.artifactsRetentionDays > 0 with: name: ${{ steps.calculateArtifactsNames.outputs.TestAppsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/TestApps/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - build output - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 if: (success() || failure()) && (hashFiles(format('{0}/BuildOutput.txt',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BuildOutputArtifactsName }} @@ -259,7 +207,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - container event log - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 if: (failure()) && (hashFiles(format('{0}/ContainerEventLog.evtx',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.ContainerEventLogArtifactsName }} @@ -267,7 +215,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/TestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestResultsArtifactsName }} @@ -275,7 +223,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - bcpt test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/bcptTestResults.json',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BcptTestResultsArtifactsName }} @@ -283,7 +231,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultsArtifactsName }} @@ -291,8 +239,8 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test result details - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResultDetails/*',inputs.project)) != '') + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + if: (success() || failure()) with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultDetailsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/PageScriptingTestResultDetails/' @@ -300,15 +248,15 @@ jobs: - name: Analyze Test Results id: analyzeTestResults - if: (success() || failure()) && env.doNotRunTests == 'False' && ((hashFiles(format('{0}/.buildartifacts/TestResults.xml',inputs.project)) != '') || (hashFiles(format('{0}/.buildartifacts/bcptTestResults.json',inputs.project)) != '')) - uses: freddydk/AL-Go/Actions/AnalyzeTests@partial + if: (success() || failure()) && env.doNotRunTests == 'False' + uses: freddydk/AL-Go/Actions/AnalyzeTests@thisbuild with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - name: Cleanup if: always() - uses: freddydk/AL-Go/Actions/PipelineCleanup@partial + uses: freddydk/AL-Go/Actions/PipelineCleanup@thisbuild with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} diff --git a/BO-DK/.AL-Go/cloudDevEnv.ps1 b/BO-DK/.AL-Go/cloudDevEnv.ps1 index 3327eeb..7b5c48a 100644 --- a/BO-DK/.AL-Go/cloudDevEnv.ps1 +++ b/BO-DK/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/BO-DK/.AL-Go/localDevEnv.ps1 b/BO-DK/.AL-Go/localDevEnv.ps1 index 842f4f6..7a058be 100644 --- a/BO-DK/.AL-Go/localDevEnv.ps1 +++ b/BO-DK/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/BO-IT/.AL-Go/cloudDevEnv.ps1 b/BO-IT/.AL-Go/cloudDevEnv.ps1 index 3327eeb..7b5c48a 100644 --- a/BO-IT/.AL-Go/cloudDevEnv.ps1 +++ b/BO-IT/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/BO-IT/.AL-Go/localDevEnv.ps1 b/BO-IT/.AL-Go/localDevEnv.ps1 index 842f4f6..7a058be 100644 --- a/BO-IT/.AL-Go/localDevEnv.ps1 +++ b/BO-IT/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/BO-W1/.AL-Go/cloudDevEnv.ps1 b/BO-W1/.AL-Go/cloudDevEnv.ps1 index 3327eeb..7b5c48a 100644 --- a/BO-W1/.AL-Go/cloudDevEnv.ps1 +++ b/BO-W1/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/BO-W1/.AL-Go/localDevEnv.ps1 b/BO-W1/.AL-Go/localDevEnv.ps1 index 842f4f6..7a058be 100644 --- a/BO-W1/.AL-Go/localDevEnv.ps1 +++ b/BO-W1/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/Common/.AL-Go/cloudDevEnv.ps1 b/Common/.AL-Go/cloudDevEnv.ps1 index 3327eeb..7b5c48a 100644 --- a/Common/.AL-Go/cloudDevEnv.ps1 +++ b/Common/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/Common/.AL-Go/localDevEnv.ps1 b/Common/.AL-Go/localDevEnv.ps1 index 842f4f6..7a058be 100644 --- a/Common/.AL-Go/localDevEnv.ps1 +++ b/Common/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/Misc/.AL-Go/cloudDevEnv.ps1 b/Misc/.AL-Go/cloudDevEnv.ps1 index 3327eeb..7b5c48a 100644 --- a/Misc/.AL-Go/cloudDevEnv.ps1 +++ b/Misc/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/Misc/.AL-Go/localDevEnv.ps1 b/Misc/.AL-Go/localDevEnv.ps1 index 842f4f6..7a058be 100644 --- a/Misc/.AL-Go/localDevEnv.ps1 +++ b/Misc/.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/freddydk/AL-Go/partial/Actions/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/partial/Actions/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/freddydk/AL-Go/thisbuild/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local