Skip to content

Commit

Permalink
Updated AL-Go System Files
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Sep 28, 2023
1 parent 2ac1345 commit 8d3182f
Show file tree
Hide file tree
Showing 15 changed files with 102 additions and 106 deletions.
4 changes: 2 additions & 2 deletions .AL-Go/cloudDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumen
$webClient.Encoding = [System.Text.Encoding]::UTF8
Write-Host "Downloading GitHub Helper module"
$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go/eabe480ba72260c6805e575f6bd03ac129367160/Actions/Github-Helper.psm1', $GitHubHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/main/Actions/Github-Helper.psm1', $GitHubHelperPath)
Write-Host "Downloading AL-Go Helper script"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go/eabe480ba72260c6805e575f6bd03ac129367160/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
8 changes: 3 additions & 5 deletions .AL-Go/localDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Param(
[string] $auth = "",
[pscredential] $credential = $null,
[string] $licenseFileUrl = "",
[string] $insiderSasToken = "",
[switch] $fromVSCode
)

Expand All @@ -20,10 +19,10 @@ $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumen
$webClient.Encoding = [System.Text.Encoding]::UTF8
Write-Host "Downloading GitHub Helper module"
$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go/eabe480ba72260c6805e575f6bd03ac129367160/Actions/Github-Helper.psm1', $GitHubHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/main/Actions/Github-Helper.psm1', $GitHubHelperPath)
Write-Host "Downloading AL-Go Helper script"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go/eabe480ba72260c6805e575f6bd03ac129367160/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down Expand Up @@ -130,8 +129,7 @@ CreateDevEnv `
-project $project `
-auth $auth `
-credential $credential `
-licenseFileUrl $licenseFileUrl `
-insiderSasToken $insiderSasToken
-licenseFileUrl $licenseFileUrl
}
catch {
Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)"
Expand Down
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "AppSource App",
"templateUrl": "https://github.com/microsoft/AL-Go-AppSource@preview",
"templateUrl": "https://github.com/freddydk/AL-Go@main",
"NextMajorSchedule": "0 2 * * 0",
"NextMinorSchedule": "0 2 * * 6",
"CurrentSchedule": "0 2 * * 1,2,3,4,5",
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowInitialize@main
with:
shell: pwsh
eventId: "DO0091"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh
get: type
Expand All @@ -64,30 +64,30 @@ jobs:
- name: Determine Projects To Build
id: determineProjectsToBuild
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@main
with:
shell: pwsh
maxBuildDepth: ${{ env.workflowDepth }}

- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@main
with:
shell: pwsh
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'N'

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}

- name: Determine Delivery Targets
id: DetermineDeliveryTargets
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@main
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -97,7 +97,7 @@ jobs:

- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: microsoft/AL-Go/Actions/DetermineDeploymentEnvironments@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/DetermineDeploymentEnvironments@main
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand All @@ -113,13 +113,13 @@ jobs:
uses: actions/checkout@v3

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh
get: templateUrl

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go/Actions/CheckForUpdates@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CheckForUpdates@main
with:
shell: pwsh
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Expand All @@ -143,7 +143,7 @@ jobs:
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
secrets: 'licenseFileUrl,insiderSasToken,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
signArtifacts: true
Expand All @@ -167,7 +167,7 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

Expand All @@ -180,14 +180,14 @@ jobs:
- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects'

- name: Deploy
uses: microsoft/AL-Go/Actions/Deploy@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/Deploy@main
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand Down Expand Up @@ -216,20 +216,20 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

- name: Deliver
uses: microsoft/AL-Go/Actions/Deliver@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/Deliver@main
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -249,7 +249,7 @@ jobs:

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: pwsh
eventId: "DO0091"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/CreateOnlineDevelopmentEnvironment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowInitialize@main
with:
shell: pwsh
eventId: "DO0093"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -82,7 +82,7 @@ jobs:
Write-Host "AdminCenterApiCredentials not provided, initiating Device Code flow"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient = New-Object System.Net.WebClient
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go/eabe480ba72260c6805e575f6bd03ac129367160/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
. $ALGoHelperPath
DownloadAndImportBcContainerHelper
$authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0))
Expand All @@ -104,13 +104,13 @@ jobs:
uses: actions/checkout@v3

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -129,7 +129,7 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials"
- name: Create Development Environment
uses: microsoft/AL-Go/Actions/CreateDevelopmentEnvironment@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@main
with:
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -142,7 +142,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: pwsh
eventId: "DO0093"
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/CreateRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,26 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowInitialize@main
with:
shell: pwsh
eventId: "DO0094"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh
get: templateUrl,repoName

- name: Determine Projects
id: determineProjects
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@main
with:
shell: pwsh

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go/Actions/CheckForUpdates@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CheckForUpdates@main
with:
shell: pwsh
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Prepare release notes
id: createreleasenotes
uses: microsoft/AL-Go/Actions/CreateReleaseNotes@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CreateReleaseNotes@main
with:
shell: pwsh
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -216,13 +216,13 @@ jobs:
uses: actions/checkout@v3

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
});
- name: Deliver to NuGet
uses: microsoft/AL-Go/Actions/Deliver@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/Deliver@main
if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }}
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
Expand All @@ -272,7 +272,7 @@ jobs:
atypes: 'Apps,TestApps'

- name: Deliver to Storage
uses: microsoft/AL-Go/Actions/Deliver@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/Deliver@main
if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }}
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
Expand Down Expand Up @@ -309,21 +309,21 @@ jobs:
needs: [ CreateRelease, UploadArtifacts ]
steps:
- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Update Version Number
uses: microsoft/AL-Go/Actions/IncrementVersionNumber@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/IncrementVersionNumber@main
with:
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -341,7 +341,7 @@ jobs:

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: pwsh
eventId: "DO0094"
Expand Down
Loading

0 comments on commit 8d3182f

Please sign in to comment.