Skip to content

Commit 554945a

Browse files
committed
[main] Update AL-Go System Files from microsoft/AL-Go-PTE@main - 1ac0d953e1909925d7c7b06361f225f8883a9674
1 parent cbf84b3 commit 554945a

21 files changed

+242
-145
lines changed

.AL-Go/cloudDevEnv.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Write-Host -ForegroundColor Yellow @'
4242

4343
$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
4444
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
45-
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Github-Helper.psm1' -folder $tmpFolder
46-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1' -folder $tmpFolder
47-
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json' -folder $tmpFolder | Out-Null
45+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder
46+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder
47+
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null
4848

4949
Import-Module $GitHubHelperPath
5050
. $ALGoHelperPath -local

.AL-Go/localDevEnv.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ Write-Host -ForegroundColor Yellow @'
4646

4747
$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
4848
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
49-
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Github-Helper.psm1' -folder $tmpFolder
50-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1' -folder $tmpFolder
51-
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json' -folder $tmpFolder | Out-Null
49+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder
50+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder
51+
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null
5252

5353
Import-Module $GitHubHelperPath
5454
. $ALGoHelperPath -local

.github/AL-Go-Settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"nextMinorSchedule": "0 0 15 * *",
55
"UpdateGitHubGoSystemFilesSchedule": "0 0 1,15 * *",
66
"templateUrl": "https://github.com/microsoft/AL-Go-PTE@main",
7-
"templateSha": "36999e29e31ad83a6a856ee6ef59cd1602c84df5"
7+
"templateSha": "1ac0d953e1909925d7c7b06361f225f8883a9674"
88
}

.github/RELEASENOTES.copy.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## v6.2
2+
3+
### Issues
4+
5+
- Issue 1296 Make property "appFolders" optional
6+
- Issue 1344 Experimental feature "git submodules" seems to be a breaking change
7+
- Issue 1305 Extra telemetry Property RepositoryOwner and RepositoryName¨
8+
- Add RunnerEnvironment to Telemetry
9+
- Output a notice, not a warning, when there are no available updates for AL-Go for GitHub
10+
11+
### New Repository Settings
12+
13+
- `useGitSubmodules` can be either `true` or `recursive` if you want to enable Git Submodules in your repository. If your Git submodules resides in a private repository, you need to create a secret called `gitSubmodulesToken` containing a PAT with access to the submodule repositories. Like with all other secrets, you can also create a setting called `gitSubmodulesTokenSecretName` and specify the name of another secret, with these permissions (f.ex. ghTokenWorkflow).
14+
- `commitOptions` - is a structure defining how you want AL-Go to handle automated commits or pull requests coming from AL-Go (e.g. for Update AL-Go System Files). The structure contains the following properties
15+
- `messageSuffix` : A string you want to append to the end of commits/pull requests created by AL-Go. This can be useful if you are using the Azure Boards integration (or similar integration) to link commits to workitems.
16+
- `pullRequestAutoMerge` : A boolean defining whether you want AL-Go pull requests to be set to auto-complete. This will auto-complete the pull requests once all checks are green and all required reviewers have approved.
17+
- `pullRequestLabels` : A list of labels to add to the pull request. The labels need to be created in the repository before they can be applied.
18+
19+
### Support for Git submodules
20+
21+
In v6.1 we added experimental support for Git submodules - this did however only work if the submodules was in a public repository. In this version, you can use the `useGitSubmodules` setting to control whether you want to use Git Submodules and the `gitSubmodulesToken` secret to allow permission to read these repositories.
22+
123
## v6.1
224

325
### Issues

.github/workflows/AddExistingAppOrTestApp.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: [ windows-latest ]
4242
steps:
4343
- name: Dump Workflow Information
44-
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1
44+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2
4545
with:
4646
shell: powershell
4747

@@ -50,26 +50,26 @@ jobs:
5050

5151
- name: Initialize the workflow
5252
id: init
53-
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1
53+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2
5454
with:
5555
shell: powershell
5656

5757
- name: Read settings
58-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
58+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
5959
with:
6060
shell: powershell
6161

6262
- name: Read secrets
6363
id: ReadSecrets
64-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
64+
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2
6565
with:
6666
shell: powershell
6767
gitHubSecrets: ${{ toJson(secrets) }}
6868
getSecrets: 'TokenForPush'
6969
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'
7070

7171
- name: Add existing app
72-
uses: microsoft/AL-Go-Actions/AddExistingApp@v6.1
72+
uses: microsoft/AL-Go-Actions/AddExistingApp@v6.2
7373
with:
7474
shell: powershell
7575
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Finalize the workflow
8181
if: always()
82-
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1
82+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2
8383
env:
8484
GITHUB_TOKEN: ${{ github.token }}
8585
with:

.github/workflows/CICD.yaml

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,44 @@ jobs:
4545
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
4646
steps:
4747
- name: Dump Workflow Information
48-
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1
48+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2
4949
with:
5050
shell: powershell
5151

5252
- name: Checkout
5353
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5454
with:
5555
lfs: true
56-
submodules: recursive
5756

5857
- name: Initialize the workflow
5958
id: init
60-
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1
59+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2
6160
with:
6261
shell: powershell
6362

6463
- name: Read settings
6564
id: ReadSettings
66-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
65+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
6766
with:
6867
shell: powershell
69-
get: type, powerPlatformSolutionFolder
68+
get: type,powerPlatformSolutionFolder,useGitSubmodules
69+
70+
- name: Read submodules token
71+
id: ReadSubmodulesToken
72+
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
73+
uses: microsoft/AL-Go-Actions/[email protected]
74+
with:
75+
shell: powershell
76+
gitHubSecrets: ${{ toJson(secrets) }}
77+
getSecrets: '-gitSubmodulesToken'
78+
79+
- name: Checkout Submodules
80+
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
81+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
82+
with:
83+
lfs: true
84+
submodules: ${{ env.useGitSubmodules }}
85+
token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}'
7086

7187
- name: Determine Workflow Depth
7288
id: DetermineWorkflowDepth
@@ -75,7 +91,7 @@ jobs:
7591
7692
- name: Determine Projects To Build
7793
id: determineProjectsToBuild
78-
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1
94+
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2
7995
with:
8096
shell: powershell
8197
maxBuildDepth: ${{ env.workflowDepth }}
@@ -88,23 +104,23 @@ jobs:
88104
89105
- name: Determine Delivery Target Secrets
90106
id: DetermineDeliveryTargetSecrets
91-
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1
107+
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2
92108
with:
93109
shell: powershell
94110
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
95111
checkContextSecrets: 'false'
96112

97113
- name: Read secrets
98114
id: ReadSecrets
99-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
115+
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2
100116
with:
101117
shell: powershell
102118
gitHubSecrets: ${{ toJson(secrets) }}
103119
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}
104120

105121
- name: Determine Delivery Targets
106122
id: DetermineDeliveryTargets
107-
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1
123+
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2
108124
env:
109125
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
110126
with:
@@ -114,7 +130,7 @@ jobs:
114130

115131
- name: Determine Deployment Environments
116132
id: DetermineDeploymentEnvironments
117-
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1
133+
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2
118134
env:
119135
GITHUB_TOKEN: ${{ github.token }}
120136
with:
@@ -130,13 +146,13 @@ jobs:
130146
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131147

132148
- name: Read settings
133-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
149+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
134150
with:
135151
shell: powershell
136152
get: templateUrl
137153

138154
- name: Check for updates to AL-Go system files
139-
uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.1
155+
uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2
140156
with:
141157
shell: powershell
142158
templateUrl: ${{ env.templateUrl }}
@@ -188,7 +204,7 @@ jobs:
188204
path: '.artifacts'
189205

190206
- name: Read settings
191-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
207+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
192208
with:
193209
shell: powershell
194210

@@ -197,7 +213,7 @@ jobs:
197213
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
198214

199215
- name: Build Reference Documentation
200-
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.1
216+
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.2
201217
with:
202218
shell: powershell
203219
artifacts: '.artifacts'
@@ -234,7 +250,7 @@ jobs:
234250
path: '.artifacts'
235251

236252
- name: Read settings
237-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
253+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
238254
with:
239255
shell: ${{ matrix.shell }}
240256
get: type,powerPlatformSolutionFolder
@@ -248,15 +264,15 @@ jobs:
248264
249265
- name: Read secrets
250266
id: ReadSecrets
251-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
267+
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2
252268
with:
253269
shell: ${{ matrix.shell }}
254270
gitHubSecrets: ${{ toJson(secrets) }}
255271
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'
256272

257273
- name: Deploy to Business Central
258274
id: Deploy
259-
uses: microsoft/AL-Go-Actions/Deploy@v6.1
275+
uses: microsoft/AL-Go-Actions/Deploy@v6.2
260276
env:
261277
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
262278
with:
@@ -268,7 +284,7 @@ jobs:
268284

269285
- name: Deploy to Power Platform
270286
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
271-
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.1
287+
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2
272288
env:
273289
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
274290
with:
@@ -296,20 +312,20 @@ jobs:
296312
path: '.artifacts'
297313

298314
- name: Read settings
299-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
315+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
300316
with:
301317
shell: powershell
302318

303319
- name: Read secrets
304320
id: ReadSecrets
305-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
321+
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2
306322
with:
307323
shell: powershell
308324
gitHubSecrets: ${{ toJson(secrets) }}
309325
getSecrets: '${{ matrix.deliveryTarget }}Context'
310326

311327
- name: Deliver
312-
uses: microsoft/AL-Go-Actions/Deliver@v6.1
328+
uses: microsoft/AL-Go-Actions/Deliver@v6.2
313329
env:
314330
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
315331
with:
@@ -329,7 +345,7 @@ jobs:
329345

330346
- name: Finalize the workflow
331347
id: PostProcess
332-
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1
348+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2
333349
env:
334350
GITHUB_TOKEN: ${{ github.token }}
335351
with:

.github/workflows/CreateApp.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: [ windows-latest ]
5252
steps:
5353
- name: Dump Workflow Information
54-
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1
54+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2
5555
with:
5656
shell: powershell
5757

@@ -60,27 +60,27 @@ jobs:
6060

6161
- name: Initialize the workflow
6262
id: init
63-
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1
63+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2
6464
with:
6565
shell: powershell
6666

6767
- name: Read settings
68-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
68+
uses: microsoft/AL-Go-Actions/ReadSettings@v6.2
6969
with:
7070
shell: powershell
7171
get: type
7272

7373
- name: Read secrets
7474
id: ReadSecrets
75-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
75+
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2
7676
with:
7777
shell: powershell
7878
gitHubSecrets: ${{ toJson(secrets) }}
7979
getSecrets: 'TokenForPush'
8080
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'
8181

8282
- name: Creating a new app
83-
uses: microsoft/AL-Go-Actions/CreateApp@v6.1
83+
uses: microsoft/AL-Go-Actions/CreateApp@v6.2
8484
with:
8585
shell: powershell
8686
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Finalize the workflow
9696
if: always()
97-
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1
97+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2
9898
env:
9999
GITHUB_TOKEN: ${{ github.token }}
100100
with:

0 commit comments

Comments
 (0)