Skip to content

Commit

Permalink
Update AL-Go System Files
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Dec 8, 2023
1 parent eeffcbf commit 2c9e450
Show file tree
Hide file tree
Showing 28 changed files with 161 additions and 146 deletions.
4 changes: 2 additions & 2 deletions .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "PTE",
"templateUrl": "https://github.com/freddydk/AL-Go@checkSecrets",
"templateSha": "e1d526b361be943cf03b52c9c273337e22c1274d"
"templateUrl": "https://github.com/freddydk/AL-Go@fixinc",
"templateSha": "cf595a8bfd759b7a216eac8afc4ac7cde6d04c21"
}
12 changes: 6 additions & 6 deletions .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: [ windows-latest ]
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@checkSecrets
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@fixinc
with:
shell: powershell

Expand All @@ -48,27 +48,27 @@ jobs:

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

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

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

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

- name: Finalize the workflow
if: always()
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@fixinc
with:
shell: powershell
eventId: "DO0090"
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@checkSecrets
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@fixinc
with:
shell: powershell

Expand All @@ -53,14 +53,14 @@ jobs:

- name: Initialize the workflow
id: init
uses: freddydk/AL-Go/Actions/WorkflowInitialize@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowInitialize@fixinc
with:
shell: powershell
eventId: "DO0091"

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

- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@checkSecrets
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@fixinc
with:
shell: powershell
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

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

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

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

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell
get: templateUrl

- name: Check for updates to AL-Go system files
uses: freddydk/AL-Go/Actions/CheckForUpdates@checkSecrets
uses: freddydk/AL-Go/Actions/CheckForUpdates@fixinc
with:
shell: powershell
templateUrl: ${{ env.templateUrl }}
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

Expand All @@ -189,7 +189,7 @@ jobs:
uses: actions/configure-pages@v3

- name: Build Reference Documentation
uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@checkSecrets
uses: freddydk/AL-Go/Actions/BuildReferenceDocumentation@fixinc
with:
shell: powershell
artifacts: '.artifacts'
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

Expand All @@ -236,15 +236,15 @@ jobs:
- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@fixinc
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
id: Deploy
uses: freddydk/AL-Go/Actions/Deploy@checkSecrets
uses: freddydk/AL-Go/Actions/Deploy@fixinc
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand Down Expand Up @@ -273,20 +273,20 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

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

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

- name: Finalize the workflow
id: PostProcess
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@fixinc
with:
shell: powershell
eventId: "DO0091"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/CreateApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: [ windows-latest ]
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@checkSecrets
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@fixinc
with:
shell: powershell

Expand All @@ -58,28 +58,28 @@ jobs:

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

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell
get: type

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

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

- name: Finalize the workflow
if: always()
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@fixinc
with:
shell: powershell
eventId: "DO0092"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/CreateOnlineDevelopmentEnvironment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@checkSecrets
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@fixinc
with:
shell: powershell

Expand All @@ -57,20 +57,20 @@ jobs:

- name: Initialize the workflow
id: init
uses: freddydk/AL-Go/Actions/WorkflowInitialize@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowInitialize@fixinc
with:
shell: powershell
eventId: "DO0093"

- name: Read settings
id: ReadSettings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@fixinc
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -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/checkSecrets/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/fixinc/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
. $ALGoHelperPath
DownloadAndImportBcContainerHelper
$authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0))
Expand All @@ -111,13 +111,13 @@ jobs:
uses: actions/checkout@v3

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@fixinc
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -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@checkSecrets
uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@fixinc
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -149,7 +149,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@checkSecrets
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@fixinc
with:
shell: powershell
eventId: "DO0093"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/CreatePerformanceTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
runs-on: [ windows-latest ]
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@checkSecrets
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@fixinc
with:
shell: powershell

Expand All @@ -64,27 +64,27 @@ jobs:

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

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@checkSecrets
uses: freddydk/AL-Go/Actions/ReadSettings@fixinc
with:
shell: powershell

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

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

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

0 comments on commit 2c9e450

Please sign in to comment.