From 1a52c7f952d516d58ea5640abe17a66066f6ec49 Mon Sep 17 00:00:00 2001 From: freddydk Date: Fri, 12 Apr 2024 09:57:31 +0000 Subject: [PATCH] Update AL-Go System Files --- .github/AL-Go-Settings.json | 4 +- .../workflows/AddExistingAppOrTestApp.yaml | 12 +-- .github/workflows/CICD.yaml | 91 ++++++------------- .github/workflows/CreateApp.yaml | 12 +-- .../CreateOnlineDevelopmentEnvironment.yaml | 18 ++-- .../workflows/CreatePerformanceTestApp.yaml | 12 +-- .github/workflows/CreateRelease.yaml | 68 +++++++------- .github/workflows/CreateTestApp.yaml | 12 +-- .github/workflows/Current.yaml | 10 +- .../DeployReferenceDocumentation.yaml | 10 +- .github/workflows/IncrementVersionNumber.yaml | 12 +-- .github/workflows/NextMajor.yaml | 10 +- .github/workflows/NextMinor.yaml | 10 +- .github/workflows/PublishToEnvironment.yaml | 43 +++------ .github/workflows/PullRequestHandler.yaml | 12 +-- .github/workflows/Troubleshooting.yaml | 2 +- .../workflows/UpdateGitHubGoSystemFiles.yaml | 14 +-- .github/workflows/_BuildALGoProject.yaml | 26 +++--- BO-DK/.AL-Go/cloudDevEnv.ps1 | 4 +- BO-DK/.AL-Go/localDevEnv.ps1 | 4 +- BO-IT/.AL-Go/cloudDevEnv.ps1 | 4 +- BO-IT/.AL-Go/localDevEnv.ps1 | 4 +- BO-W1/.AL-Go/cloudDevEnv.ps1 | 4 +- BO-W1/.AL-Go/localDevEnv.ps1 | 4 +- Common/.AL-Go/cloudDevEnv.ps1 | 4 +- Common/.AL-Go/localDevEnv.ps1 | 4 +- Misc/.AL-Go/cloudDevEnv.ps1 | 4 +- Misc/.AL-Go/localDevEnv.ps1 | 4 +- 28 files changed, 188 insertions(+), 230 deletions(-) diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index 4443e14..8aa60bc 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@PPP", + "templateUrl": "https://github.com/freddydk/AL-Go@issue1009", "CICDPushBranches": [ "main", "release/*", @@ -31,6 +31,6 @@ "DeliverToStorage": { "CreateContainerIfNotExist": true }, - "templateSha": "b35d94689355e95cb5e3055717ca44243a77d6cb", + "templateSha": "fba454a230aa4bdd4b5d4de5db363cae23115008", "RepoVersion": "1.0" } diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 5ef223e..fa00288 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -39,7 +39,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -48,19 +48,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0090" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -68,7 +68,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: freddydk/AL-Go/Actions/AddExistingApp@PPP + uses: freddydk/AL-Go/Actions/AddExistingApp@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0090" diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index c85f425..ff8b3fb 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -40,11 +40,10 @@ jobs: projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }} projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} - powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -55,17 +54,17 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0091" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - get: type, powerPlatformSolutionFolder + get: type - name: Determine Workflow Depth id: DetermineWorkflowDepth @@ -74,20 +73,14 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} - - name: Determine PowerPlatform Solution Folder - id: DeterminePowerPlatformSolutionFolder - if: env.type == 'PTE' - run: | - Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "powerPlatformSolutionFolder=$($env:powerPlatformSolutionFolder)" - - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@PPP + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@issue1009 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -95,7 +88,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -103,7 +96,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@PPP + uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -113,7 +106,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@PPP + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@issue1009 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -129,13 +122,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell get: templateUrl - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@PPP + uses: freddydk/AL-Go/Actions/CheckForUpdates@issue1009 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -213,27 +206,13 @@ jobs: signArtifacts: true useArtifactCache: true - BuildPP: - needs: [ Initialization ] - if: (!failure()) && (!cancelled()) && needs.Initialization.outputs.powerPlatformSolutionFolder != '' - name: Build PowerPlatform Solution - uses: ./.github/workflows/_BuildPowerPlatformSolution.yaml - secrets: inherit - with: - shell: ${{ needs.Initialization.outputs.githubRunnerShell }} - runsOn: ${{ needs.Initialization.outputs.githubRunner }} - parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }} - project: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }} - projectName: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }} - publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} - DeployALDoc: needs: [ Initialization, Build ] - if: (!cancelled()) && needs.Build.result == 'Success' && needs.Initialization.outputs.generateALDocArtifact == 1 && github.ref_name == 'main' + if: always() && needs.Build.result == 'Success' && needs.Initialization.outputs.generateALDocArtifact == 1 && github.ref_name == 'main' runs-on: windows-latest name: Deploy Reference Documentation permissions: - contents: write + contents: read actions: read pages: write id-token: write @@ -250,7 +229,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell @@ -259,7 +238,7 @@ jobs: uses: actions/configure-pages@v5 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@PPP + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@issue1009 with: shell: powershell artifacts: '.artifacts' @@ -275,8 +254,8 @@ jobs: uses: actions/deploy-pages@v4 Deploy: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && needs.Build.result != 'Failure' && needs.BuildPP.result != 'Failure' && needs.Initialization.outputs.environmentCount > 0 + needs: [ Initialization, Build ] + if: always() && needs.Build.result == 'Success' && needs.Initialization.outputs.environmentCount > 0 strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }} runs-on: ${{ fromJson(matrix.os) }} name: Deploy to ${{ matrix.environment }} @@ -293,10 +272,9 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - get: type,powerPlatformSolutionFolder - name: EnvName id: envName @@ -307,38 +285,27 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - - name: Deploy to Business Central + - name: Deploy id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@PPP + uses: freddydk/AL-Go/Actions/Deploy@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: shell: powershell environmentName: ${{ matrix.environment }} - artifactsFolder: '.artifacts' + artifacts: '.artifacts' type: 'CD' deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} - - name: Deploy to Power Platform - if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: freddydk/AL-Go/Actions/DeployPowerPlatform@PPP - env: - Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' - with: - shell: powershell - environmentName: ${{ matrix.environment }} - artifactsFolder: '.artifacts' - deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} - Deliver: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && needs.Build.result != 'Failure' && needs.BuildPP.result != 'Failure' && needs.Initialization.outputs.deliveryTargetsJson != '[]' + needs: [ Initialization, Build ] + if: always() && needs.Build.result == 'Success' && needs.Initialization.outputs.deliveryTargetsJson != '[]' strategy: matrix: deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }} @@ -355,20 +322,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: freddydk/AL-Go/Actions/Deliver@PPP + uses: freddydk/AL-Go/Actions/Deliver@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -379,7 +346,7 @@ jobs: artifacts: '.artifacts' PostProcess: - needs: [ Initialization, Build, BuildPP, Deploy, Deliver, DeployALDoc ] + needs: [ Initialization, Build, Deploy, Deliver, DeployALDoc ] if: (!cancelled()) runs-on: [ windows-latest ] steps: @@ -388,7 +355,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0091" diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index 8f7ee8e..017c758 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -49,7 +49,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -58,20 +58,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0092" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -79,7 +79,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: freddydk/AL-Go/Actions/CreateApp@PPP + uses: freddydk/AL-Go/Actions/CreateApp@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0092" diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index af604c9..8050848 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -48,7 +48,7 @@ jobs: githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -57,20 +57,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0093" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -89,7 +89,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/PPP/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -111,13 +111,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -136,7 +136,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@PPP + uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0093" diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index b0dbf1d..a8ef9ac 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -55,7 +55,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -64,19 +64,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0102" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -84,7 +84,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: freddydk/AL-Go/Actions/CreateApp@PPP + uses: freddydk/AL-Go/Actions/CreateApp@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -100,7 +100,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0102" diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 5c95007..03435bc 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -72,7 +72,7 @@ jobs: releaseVersion: ${{ steps.createreleasenotes.outputs.releaseVersion }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -81,26 +81,35 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0094" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell get: templateUrl,repoName + - name: Read secrets + id: ReadSecrets + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: 'TokenForPush' + useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' + - name: Determine Projects id: determineProjects - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell - name: Check for updates to AL-Go system files - uses: freddydk/AL-Go/Actions/CheckForUpdates@PPP + uses: freddydk/AL-Go/Actions/CheckForUpdates@issue1009 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -108,8 +117,6 @@ jobs: - name: Analyze Artifacts id: analyzeartifacts - env: - _appVersion: ${{ github.event.inputs.appVersion }} run: | $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 $projects = '${{ steps.determineProjects.outputs.ProjectsJson }}' | ConvertFrom-Json @@ -122,10 +129,10 @@ jobs: $headers = @{ "Authorization" = "token ${{ github.token }}" "X-GitHub-Api-Version" = "2022-11-28" - "Accept" = "application/vnd.github+json" + "Accept" = "application/vnd.github+json; charset=utf-8" } do { - $repoArtifacts = Invoke-WebRequest -UseBasicParsing -Headers $headers -Uri "$($ENV:GITHUB_API_URL)/repos/$($ENV:GITHUB_REPOSITORY)/actions/artifacts?per_page=100&page=$page" | ConvertFrom-Json + $repoArtifacts = Invoke-RestMethod -UseBasicParsing -Headers $headers -Uri "$($ENV:GITHUB_API_URL)/repos/$($ENV:GITHUB_REPOSITORY)/actions/artifacts?per_page=100&page=$page" $allArtifacts += $repoArtifacts.Artifacts | Where-Object { !$_.expired } $page++ } @@ -142,18 +149,17 @@ jobs: } $refname = "$ENV:GITHUB_REF_NAME".Replace('/','_') Write-Host "Analyzing artifacts for project $project" - $appVersion = "$env:_appVersion" + $appVersion = '${{ github.event.inputs.appVersion }}' if ($appVersion -eq "latest") { Write-Host "Grab latest" - $artifact = $allArtifacts | Where-Object { $_.name -like "$project-$refname-Apps-*" -or $_.name -like "$project-$refname-PowerPlatformSolution-*" } | Select-Object -First 1 + $artifact = $allArtifacts | Where-Object { $_.name -like "$project-$refname-Apps-*" } | Select-Object -First 1 } else { - Write-Host "Search for $project-$refname-Apps-$appVersion or $project-$refname-PowerPlatformSolution-$appVersion" - $artifact = $allArtifacts | Where-Object { $_.name -eq "$project-$refname-Apps-$appVersion"-or $_.name -eq "$project-$refname-PowerPlatformSolution-$appVersion" } | Select-Object -First 1 + Write-Host "Search for $project-$refname-Apps-$appVersion" + $artifact = $allArtifacts | Where-Object { $_.name -eq "$project-$refname-Apps-$appVersion" } | Select-Object -First 1 } if ($artifact) { - $startIndex = $artifact.name.LastIndexOf('-') + 1 - $artifactsVersion = $artifact.name.SubString($startIndex) + $artifactsVersion = $artifact.name.SubString($artifact.name.LastIndexOf('-Apps-')+6) } else { Write-Host "::Error::No artifacts found for this project" @@ -169,14 +175,13 @@ jobs: $sha = $artifact.workflow_run.head_sha } - write-host "looking for $project-$refname-Apps-$artifactsVersion or $project-$refname-TestApps-$artifactsVersion or $project-$refname-Dependencies-$artifactsVersion or $project-$refname-PowerPlatformSolution-$artifactsVersion" - $allArtifacts | Where-Object { ($_.name -like "$project-$refname-Apps-$artifactsVersion" -or $_.name -like "$project-$refname-TestApps-$artifactsVersion" -or $_.name -like "$project-$refname-Dependencies-$artifactsVersion" -or $_.name -like "$project-$refname-PowerPlatformSolution-$artifactsVersion") } | ForEach-Object { + $allArtifacts | Where-Object { ($_.name -like "$project-$refname-Apps-$($artifactsVersion)" -or $_.name -like "$project-$refname-TestApps-$($artifactsVersion)" -or $_.name -like "$project-$refname-Dependencies-$($artifactsVersion)") } | ForEach-Object { $atype = $_.name.SubString(0,$_.name.Length-$artifactsVersion.Length-1) $atype = $atype.SubString($atype.LastIndexOf('-')+1) $include += $( [ordered]@{ "name" = $_.name; "url" = $_.archive_download_url; "atype" = $atype; "project" = $thisproject } ) } if ($include.Count -eq 0) { - Write-Host "::Error::No artifacts found for version $artifactsVersion" + Write-Host "::Error::No artifacts found" exit 1 } } @@ -189,7 +194,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: freddydk/AL-Go/Actions/CreateReleaseNotes@PPP + uses: freddydk/AL-Go/Actions/CreateReleaseNotes@issue1009 with: shell: powershell parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -202,7 +207,7 @@ jobs: env: bodyMD: ${{ steps.createreleasenotes.outputs.releaseNotes }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.ReadSecrets.outputs.TokenForPush }} script: | var bodyMD = process.env.bodyMD const createReleaseResponse = await github.rest.repos.createRelease({ @@ -232,17 +237,18 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} - getSecrets: 'nuGetContext,storageContext' + getSecrets: 'nuGetContext,storageContext,TokenForPush' + useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Download artifact run: | @@ -260,11 +266,11 @@ jobs: env: releaseId: ${{ needs.createrelease.outputs.releaseId }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.ReadSecrets.outputs.TokenForPush }} script: | const releaseId = process.env.releaseId const assetPath = '${{ matrix.name }}.zip' - const assetName = '${{ matrix.name }}.zip' + const assetName = encodeURIComponent('${{ matrix.name }}.zip'.replaceAll(' ','.')).replaceAll('%','') const fs = require('fs'); const uploadAssetResponse = await github.rest.repos.uploadReleaseAsset({ owner: context.repo.owner, @@ -275,7 +281,7 @@ jobs: }); - name: Deliver to NuGet - uses: freddydk/AL-Go/Actions/Deliver@PPP + uses: freddydk/AL-Go/Actions/Deliver@issue1009 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -288,7 +294,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: freddydk/AL-Go/Actions/Deliver@PPP + uses: freddydk/AL-Go/Actions/Deliver@issue1009 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -332,13 +338,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -346,7 +352,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@PPP + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -364,7 +370,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0094" diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 70a8af6..bff280c 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -51,7 +51,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -60,19 +60,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0095" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: freddydk/AL-Go/Actions/CreateApp@PPP + uses: freddydk/AL-Go/Actions/CreateApp@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -95,7 +95,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0095" diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 0e91604..d7fbe89 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -29,7 +29,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -40,14 +40,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0101" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell @@ -58,7 +58,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -139,7 +139,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0101" diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index e4061b1..b83d39b 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: permissions: - contents: write + contents: read actions: read pages: write id-token: write @@ -30,19 +30,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0097" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@PPP + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@issue1009 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -55,7 +55,7 @@ jobs: uses: actions/configure-pages@v5 - name: Build Reference Documentation - uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@PPP + uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@issue1009 with: shell: powershell artifacts: 'latest' diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index f30f2fc..e871279 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -39,7 +39,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -48,19 +48,19 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0096" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -68,7 +68,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: freddydk/AL-Go/Actions/IncrementVersionNumber@PPP + uses: freddydk/AL-Go/Actions/IncrementVersionNumber@issue1009 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0096" diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index 7723ed0..bbb73bd 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -29,7 +29,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -40,14 +40,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0099" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell @@ -58,7 +58,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -139,7 +139,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0099" diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index df3c584..931d1b3 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -29,7 +29,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -40,14 +40,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0100" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell @@ -58,7 +58,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -139,7 +139,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0100" diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 5c77e78..04c01de 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -35,7 +35,7 @@ jobs: deviceCode: ${{ steps.Authenticate.outputs.deviceCode }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -44,20 +44,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0097" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@PPP + uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@issue1009 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 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/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -138,49 +138,30 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell - get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - - name: Get Artifacts for deployment - uses: freddydk/AL-Go/Actions/GetArtifactsForDeployment@PPP - with: - shell: powershell - artifactsVersion: ${{ github.event.inputs.appVersion }} - artifactsFolder: '.artifacts' - - - name: Deploy to Business Central + - name: Deploy id: Deploy - uses: freddydk/AL-Go/Actions/Deploy@PPP + uses: freddydk/AL-Go/Actions/Deploy@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: shell: powershell environmentName: ${{ matrix.environment }} - artifactsFolder: '.artifacts' + artifacts: ${{ github.event.inputs.appVersion }} type: 'Publish' deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} - - name: Deploy to Power Platform - if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: freddydk/AL-Go/Actions/DeployPowerPlatform@PPP - env: - Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' - with: - shell: powershell - environmentName: ${{ matrix.environment }} - artifactsFolder: '.artifacts' - deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} - PostProcess: needs: [ Initialization, Deploy ] if: always() @@ -191,7 +172,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0097" diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index 1559588..679093f 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -27,7 +27,7 @@ jobs: if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request') runs-on: [ windows-latest ] steps: - - uses: freddydk/AL-Go/Actions/VerifyPRChanges@PPP + - uses: freddydk/AL-Go/Actions/VerifyPRChanges@issue1009 Initialization: needs: [ PregateCheck ] @@ -44,7 +44,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -56,14 +56,14 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0104" - name: Read settings id: ReadSettings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell @@ -74,7 +74,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP + uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@issue1009 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -159,7 +159,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@PPP + uses: freddydk/AL-Go/Actions/PullRequestStatusCheck@issue1009 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 32ccf48..91f216e 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@PPP + uses: freddydk/AL-Go/Actions/Troubleshooting@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index a9094fc..1e7b7a8 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@PPP) + description: Template Repository URL (current is https://github.com/freddydk/AL-Go@issue1009) required: false default: '' downloadLatest: @@ -33,7 +33,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP + uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@issue1009 with: shell: powershell @@ -42,20 +42,20 @@ jobs: - name: Initialize the workflow id: init - uses: freddydk/AL-Go/Actions/WorkflowInitialize@PPP + uses: freddydk/AL-Go/Actions/WorkflowInitialize@issue1009 with: shell: powershell eventId: "DO0098" - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -91,7 +91,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@PPP + uses: freddydk/AL-Go/Actions/CheckForUpdates@issue1009 with: shell: powershell token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -102,7 +102,7 @@ jobs: - name: Finalize the workflow if: always() - uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP + uses: freddydk/AL-Go/Actions/WorkflowPostProcess@issue1009 with: shell: powershell eventId: "DO0098" diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index d4d6dc7..6cf491c 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -1,6 +1,6 @@ -name: '_Build AL-Go project' +name: '_Build AL-GO project' -run-name: 'Build AL ${{ inputs.project }}' +run-name: 'Build project ${{ inputs.project }}' on: workflow_call: @@ -72,6 +72,10 @@ on: required: false type: string +permissions: + contents: read + actions: read + env: ALGoOrgSettings: ${{ vars.ALGoOrgSettings }} ALGoRepoSettings: ${{ vars.ALGoRepoSettings }} @@ -92,7 +96,7 @@ jobs: lfs: true - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP + uses: freddydk/AL-Go/Actions/ReadSettings@issue1009 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -101,14 +105,14 @@ jobs: - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + uses: freddydk/AL-Go/Actions/ReadSecrets@issue1009 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ inputs.secrets }},appDependencyProbingPathsSecrets' - name: Determine ArtifactUrl - uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@PPP + uses: freddydk/AL-Go/Actions/DetermineArtifactUrl@issue1009 id: determineArtifactUrl with: shell: ${{ inputs.shell }} @@ -124,7 +128,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@PPP + uses: freddydk/AL-Go/Actions/DownloadProjectDependencies@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -135,7 +139,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: freddydk/AL-Go/Actions/RunPipeline@PPP + uses: freddydk/AL-Go/Actions/RunPipeline@issue1009 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -151,7 +155,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && env.keyVaultCodesignCertificateName != '' id: sign - uses: freddydk/AL-Go/Actions/Sign@PPP + uses: freddydk/AL-Go/Actions/Sign@issue1009 with: shell: ${{ needs.Initialization.outputs.githubRunnerShell }} azureCredentialsJson: ${{ secrets.AZURE_CREDENTIALS }} @@ -160,7 +164,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: freddydk/AL-Go/Actions/CalculateArtifactNames@PPP + uses: freddydk/AL-Go/Actions/CalculateArtifactNames@issue1009 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -254,7 +258,7 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: freddydk/AL-Go/Actions/AnalyzeTests@PPP + uses: freddydk/AL-Go/Actions/AnalyzeTests@issue1009 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} @@ -262,7 +266,7 @@ jobs: - name: Cleanup if: always() - uses: freddydk/AL-Go/Actions/PipelineCleanup@PPP + uses: freddydk/AL-Go/Actions/PipelineCleanup@issue1009 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} diff --git a/BO-DK/.AL-Go/cloudDevEnv.ps1 b/BO-DK/.AL-Go/cloudDevEnv.ps1 index d94200a..6996997 100644 --- a/BO-DK/.AL-Go/cloudDevEnv.ps1 +++ b/BO-DK/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/BO-DK/.AL-Go/localDevEnv.ps1 b/BO-DK/.AL-Go/localDevEnv.ps1 index d5b0b4e..07677e9 100644 --- a/BO-DK/.AL-Go/localDevEnv.ps1 +++ b/BO-DK/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/BO-IT/.AL-Go/cloudDevEnv.ps1 b/BO-IT/.AL-Go/cloudDevEnv.ps1 index d94200a..6996997 100644 --- a/BO-IT/.AL-Go/cloudDevEnv.ps1 +++ b/BO-IT/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/BO-IT/.AL-Go/localDevEnv.ps1 b/BO-IT/.AL-Go/localDevEnv.ps1 index d5b0b4e..07677e9 100644 --- a/BO-IT/.AL-Go/localDevEnv.ps1 +++ b/BO-IT/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/BO-W1/.AL-Go/cloudDevEnv.ps1 b/BO-W1/.AL-Go/cloudDevEnv.ps1 index d94200a..6996997 100644 --- a/BO-W1/.AL-Go/cloudDevEnv.ps1 +++ b/BO-W1/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/BO-W1/.AL-Go/localDevEnv.ps1 b/BO-W1/.AL-Go/localDevEnv.ps1 index d5b0b4e..07677e9 100644 --- a/BO-W1/.AL-Go/localDevEnv.ps1 +++ b/BO-W1/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/Common/.AL-Go/cloudDevEnv.ps1 b/Common/.AL-Go/cloudDevEnv.ps1 index d94200a..6996997 100644 --- a/Common/.AL-Go/cloudDevEnv.ps1 +++ b/Common/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/Common/.AL-Go/localDevEnv.ps1 b/Common/.AL-Go/localDevEnv.ps1 index d5b0b4e..07677e9 100644 --- a/Common/.AL-Go/localDevEnv.ps1 +++ b/Common/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/Misc/.AL-Go/cloudDevEnv.ps1 b/Misc/.AL-Go/cloudDevEnv.ps1 index d94200a..6996997 100644 --- a/Misc/.AL-Go/cloudDevEnv.ps1 +++ b/Misc/.AL-Go/cloudDevEnv.ps1 @@ -27,11 +27,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) diff --git a/Misc/.AL-Go/localDevEnv.ps1 b/Misc/.AL-Go/localDevEnv.ps1 index d5b0b4e..07677e9 100644 --- a/Misc/.AL-Go/localDevEnv.ps1 +++ b/Misc/.AL-Go/localDevEnv.ps1 @@ -30,11 +30,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/PPP/Actions/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/freddydk/AL-Go/issue1009/Actions/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath)