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 8e02033 commit 988c9d3
Show file tree
Hide file tree
Showing 22 changed files with 127 additions and 135 deletions.
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": "PTE",
"templateUrl": "https://github.com/microsoft/AL-Go-PTE@preview",
"templateUrl": "https://github.com/freddydk/AL-Go@main",
"runs-on": "bc-build",
"BcContainerHelperVersion": "preview",
"GenerateDependencyArtifact": true,
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ jobs:

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

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

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

- name: Add existing app
uses: microsoft/AL-Go/Actions/AddExistingApp@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/AddExistingApp@main
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -72,7 +72,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0090"
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: powershell
eventId: "DO0091"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go/Actions/ReadSettings@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSettings@main
with:
shell: powershell
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: powershell
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: powershell
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: powershell
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: powershell
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: powershell
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: powershell

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: powershell
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects'

- name: Deploy
uses: microsoft/AL-Go/Actions/Deploy@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: powershell

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
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: powershell
eventId: "DO0091"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/CreateApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,28 @@ jobs:

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

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

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

- name: Creating a new app
uses: microsoft/AL-Go/Actions/CreateApp@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CreateApp@main
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -87,7 +87,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0092"
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: powershell
eventId: "DO0093"

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

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
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: powershell

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
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: powershell
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: powershell
eventId: "DO0093"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/CreatePerformanceTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,27 @@ jobs:

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

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

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

- name: Creating a new test app
uses: microsoft/AL-Go/Actions/CreateApp@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/CreateApp@main
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -93,7 +93,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@eabe480ba72260c6805e575f6bd03ac129367160
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0102"
Expand Down
Loading

0 comments on commit 988c9d3

Please sign in to comment.