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 Apr 3, 2024
1 parent 9bd429c commit 50f106b
Show file tree
Hide file tree
Showing 31 changed files with 167 additions and 168 deletions.
4 changes: 2 additions & 2 deletions .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/freddydk/AL-Go@PPP-split",
"templateUrl": "https://github.com/freddydk/AL-Go@PPP",
"CICDPushBranches": [
"main",
"release/*",
Expand Down Expand Up @@ -31,6 +31,6 @@
"DeliverToStorage": {
"CreateContainerIfNotExist": true
},
"templateSha": "373ee0840aba4b390cdd827f8b3b2be70ebbcd64",
"templateSha": "a561e8ea74622b4707d383ac706fc63b7871912d",
"RepoVersion": "1.0"
}
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@PPP-split
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP
with:
shell: powershell

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

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

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

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

- name: Add existing app
uses: freddydk/AL-Go/Actions/AddExistingApp@PPP-split
uses: freddydk/AL-Go/Actions/AddExistingApp@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP
with:
shell: powershell
eventId: "DO0090"
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
steps:
- name: Dump Workflow Information
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP-split
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP
with:
shell: powershell

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

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

- name: Read settings
id: ReadSettings
uses: freddydk/AL-Go/Actions/ReadSettings@PPP-split
uses: freddydk/AL-Go/Actions/ReadSettings@PPP
with:
shell: powershell
get: type, powerPlatformSolutionFolder
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Determine Projects To Build
id: determineProjectsToBuild
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP-split
uses: freddydk/AL-Go/Actions/DetermineProjectsToBuild@PPP
with:
shell: powershell
maxBuildDepth: ${{ env.workflowDepth }}
Expand All @@ -87,23 +87,23 @@ jobs:
- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@PPP-split
uses: freddydk/AL-Go/Actions/DetermineDeliveryTargets@PPP
with:
shell: powershell
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

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

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

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

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

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

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

Expand All @@ -259,7 +259,7 @@ jobs:
uses: actions/configure-pages@v5

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

- name: Read settings
uses: freddydk/AL-Go/Actions/ReadSettings@PPP-split
uses: freddydk/AL-Go/Actions/ReadSettings@PPP
with:
shell: powershell
get: type,powerPlatformSolutionFolder
Expand All @@ -307,15 +307,15 @@ jobs:
- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP-split
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP
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
id: Deploy
uses: freddydk/AL-Go/Actions/Deploy@PPP-split
uses: freddydk/AL-Go/Actions/Deploy@PPP
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -327,7 +327,7 @@ jobs:

- name: Deploy to Power Platform
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
uses: freddydk/AL-Go/Actions/DeployPowerPlatform@PPP-split
uses: freddydk/AL-Go/Actions/DeployPowerPlatform@PPP
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand Down Expand Up @@ -355,20 +355,20 @@ jobs:
path: '.artifacts'

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

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

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

- name: Finalize the workflow
id: PostProcess
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP-split
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP
with:
shell: powershell

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

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

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

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

- name: Creating a new app
uses: freddydk/AL-Go/Actions/CreateApp@PPP-split
uses: freddydk/AL-Go/Actions/CreateApp@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/DumpWorkflowInfo@PPP
with:
shell: powershell

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

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

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

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP-split
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP
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/PPP-split/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/freddydk/AL-Go/PPP/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@v4

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

- name: Read secrets
id: ReadSecrets
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP-split
uses: freddydk/AL-Go/Actions/ReadSecrets@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/CreateDevelopmentEnvironment@PPP
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@PPP-split
uses: freddydk/AL-Go/Actions/WorkflowPostProcess@PPP
with:
shell: powershell
eventId: "DO0093"
Expand Down
Loading

0 comments on commit 50f106b

Please sign in to comment.