Skip to content

Commit 7c0075e

Browse files
bcbuild-github-agentbcbuild-github-agent
andauthored
[releases/24.5] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - ff5817559912b8a13b51c09368f01a623acd2082 (#2013)
## preview Note that when using the preview version of AL-Go for GitHub, we recommend you Update your AL-Go system files, as soon as possible when informed that an update is available. ### Issues - Issue 1184 Publish to Environment fails on 'Permission Denied' ### Allow GitHubRunner and GitHubRunnerShell as project settings Previously, AL-Go required the GitHubRunner and GitHubRunnerShell settings to be set on repository level. This has now been changed such that they can be set on project level. Fixes [AB#420000](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/420000) Co-authored-by: bcbuild-github-agent <[email protected]>
1 parent 3e8cf4f commit 7c0075e

File tree

23 files changed

+110
-108
lines changed

23 files changed

+110
-108
lines changed

.github/AL-Go-Settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@
7272
]
7373
},
7474
"UpdateALGoSystemFilesEnvironment": "Official-Build",
75-
"templateSha": "9308ffb724a39179ea32dd55c838f176903a2a5c"
75+
"templateSha": "ff5817559912b8a13b51c09368f01a623acd2082"
7676
}

.github/RELEASENOTES.copy.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Note that when using the preview version of AL-Go for GitHub, we recommend you U
66

77
- Issue 1184 Publish to Environment fails on 'Permission Denied'
88

9+
### Allow GitHubRunner and GitHubRunnerShell as project settings
10+
11+
Previously, AL-Go required the GitHubRunner and GitHubRunnerShell settings to be set on repository level. This has now been changed such that they can be set on project level.
12+
913
## v5.3
1014

1115
### Issues

.github/workflows/CICD.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
4646
steps:
4747
- name: Dump Workflow Information
48-
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
48+
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a2a51be438318a7e355fa9044815cf7890ffed1a
4949
with:
5050
shell: powershell
5151

@@ -56,13 +56,13 @@ jobs:
5656

5757
- name: Initialize the workflow
5858
id: init
59-
uses: microsoft/AL-Go/Actions/WorkflowInitialize@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
59+
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a2a51be438318a7e355fa9044815cf7890ffed1a
6060
with:
6161
shell: powershell
6262

6363
- name: Read settings
6464
id: ReadSettings
65-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
65+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
6666
with:
6767
shell: powershell
6868
get: type, powerPlatformSolutionFolder
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Determine Projects To Build
7676
id: determineProjectsToBuild
77-
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
77+
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@a2a51be438318a7e355fa9044815cf7890ffed1a
7878
with:
7979
shell: powershell
8080
maxBuildDepth: ${{ env.workflowDepth }}
@@ -87,23 +87,23 @@ jobs:
8787
8888
- name: Determine Delivery Target Secrets
8989
id: DetermineDeliveryTargetSecrets
90-
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
90+
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@a2a51be438318a7e355fa9044815cf7890ffed1a
9191
with:
9292
shell: powershell
9393
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
9494
checkContextSecrets: 'false'
9595

9696
- name: Read secrets
9797
id: ReadSecrets
98-
uses: microsoft/AL-Go/Actions/ReadSecrets@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
98+
uses: microsoft/AL-Go/Actions/ReadSecrets@a2a51be438318a7e355fa9044815cf7890ffed1a
9999
with:
100100
shell: powershell
101101
gitHubSecrets: ${{ toJson(secrets) }}
102102
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}
103103

104104
- name: Determine Delivery Targets
105105
id: DetermineDeliveryTargets
106-
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
106+
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@a2a51be438318a7e355fa9044815cf7890ffed1a
107107
env:
108108
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
109109
with:
@@ -113,7 +113,7 @@ jobs:
113113

114114
- name: Determine Deployment Environments
115115
id: DetermineDeploymentEnvironments
116-
uses: microsoft/AL-Go/Actions/DetermineDeploymentEnvironments@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
116+
uses: microsoft/AL-Go/Actions/DetermineDeploymentEnvironments@a2a51be438318a7e355fa9044815cf7890ffed1a
117117
env:
118118
GITHUB_TOKEN: ${{ github.token }}
119119
with:
@@ -129,13 +129,13 @@ jobs:
129129
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
130130

131131
- name: Read settings
132-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
132+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
133133
with:
134134
shell: powershell
135135
get: templateUrl
136136

137137
- name: Check for updates to AL-Go system files
138-
uses: microsoft/AL-Go/Actions/CheckForUpdates@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
138+
uses: microsoft/AL-Go/Actions/CheckForUpdates@a2a51be438318a7e355fa9044815cf7890ffed1a
139139
with:
140140
shell: powershell
141141
templateUrl: ${{ env.templateUrl }}
@@ -152,8 +152,8 @@ jobs:
152152
uses: ./.github/workflows/_BuildALGoProject.yaml
153153
secrets: inherit
154154
with:
155-
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
156-
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
155+
shell: ${{ matrix.githubRunnerShell }}
156+
runsOn: ${{ matrix.githubRunner }}
157157
project: ${{ matrix.project }}
158158
projectName: ${{ matrix.projectName }}
159159
buildMode: ${{ matrix.buildMode }}
@@ -175,8 +175,8 @@ jobs:
175175
uses: ./.github/workflows/_BuildALGoProject.yaml
176176
secrets: inherit
177177
with:
178-
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
179-
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
178+
shell: ${{ matrix.githubRunnerShell }}
179+
runsOn: ${{ matrix.githubRunner }}
180180
project: ${{ matrix.project }}
181181
projectName: ${{ matrix.projectName }}
182182
buildMode: ${{ matrix.buildMode }}
@@ -210,7 +210,7 @@ jobs:
210210
path: '.artifacts'
211211

212212
- name: Read settings
213-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
213+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
214214
with:
215215
shell: powershell
216216

@@ -219,7 +219,7 @@ jobs:
219219
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
220220

221221
- name: Build Reference Documentation
222-
uses: microsoft/AL-Go/Actions/BuildReferenceDocumentation@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
222+
uses: microsoft/AL-Go/Actions/BuildReferenceDocumentation@a2a51be438318a7e355fa9044815cf7890ffed1a
223223
with:
224224
shell: powershell
225225
artifacts: '.artifacts'
@@ -256,7 +256,7 @@ jobs:
256256
path: '.artifacts'
257257

258258
- name: Read settings
259-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
259+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
260260
with:
261261
shell: ${{ matrix.shell }}
262262
get: type,powerPlatformSolutionFolder
@@ -270,15 +270,15 @@ jobs:
270270
271271
- name: Read secrets
272272
id: ReadSecrets
273-
uses: microsoft/AL-Go/Actions/ReadSecrets@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
273+
uses: microsoft/AL-Go/Actions/ReadSecrets@a2a51be438318a7e355fa9044815cf7890ffed1a
274274
with:
275275
shell: ${{ matrix.shell }}
276276
gitHubSecrets: ${{ toJson(secrets) }}
277277
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'
278278

279279
- name: Deploy to Business Central
280280
id: Deploy
281-
uses: microsoft/AL-Go/Actions/Deploy@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
281+
uses: microsoft/AL-Go/Actions/Deploy@a2a51be438318a7e355fa9044815cf7890ffed1a
282282
env:
283283
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
284284
with:
@@ -290,7 +290,7 @@ jobs:
290290

291291
- name: Deploy to Power Platform
292292
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
293-
uses: microsoft/AL-Go/Actions/DeployPowerPlatform@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
293+
uses: microsoft/AL-Go/Actions/DeployPowerPlatform@a2a51be438318a7e355fa9044815cf7890ffed1a
294294
env:
295295
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
296296
with:
@@ -318,20 +318,20 @@ jobs:
318318
path: '.artifacts'
319319

320320
- name: Read settings
321-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
321+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
322322
with:
323323
shell: powershell
324324

325325
- name: Read secrets
326326
id: ReadSecrets
327-
uses: microsoft/AL-Go/Actions/ReadSecrets@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
327+
uses: microsoft/AL-Go/Actions/ReadSecrets@a2a51be438318a7e355fa9044815cf7890ffed1a
328328
with:
329329
shell: powershell
330330
gitHubSecrets: ${{ toJson(secrets) }}
331331
getSecrets: '${{ matrix.deliveryTarget }}Context'
332332

333333
- name: Deliver
334-
uses: microsoft/AL-Go/Actions/Deliver@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
334+
uses: microsoft/AL-Go/Actions/Deliver@a2a51be438318a7e355fa9044815cf7890ffed1a
335335
env:
336336
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
337337
with:
@@ -351,7 +351,7 @@ jobs:
351351

352352
- name: Finalize the workflow
353353
id: PostProcess
354-
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
354+
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@a2a51be438318a7e355fa9044815cf7890ffed1a
355355
env:
356356
GITHUB_TOKEN: ${{ github.token }}
357357
with:

.github/workflows/DeployReferenceDocumentation.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030

3131
- name: Initialize the workflow
3232
id: init
33-
uses: microsoft/AL-Go/Actions/WorkflowInitialize@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
33+
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a2a51be438318a7e355fa9044815cf7890ffed1a
3434
with:
3535
shell: powershell
3636

3737
- name: Read settings
38-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
38+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
3939
with:
4040
shell: powershell
4141

4242
- name: Determine Deployment Environments
4343
id: DetermineDeploymentEnvironments
44-
uses: microsoft/AL-Go/Actions/DetermineDeploymentEnvironments@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
44+
uses: microsoft/AL-Go/Actions/DetermineDeploymentEnvironments@a2a51be438318a7e355fa9044815cf7890ffed1a
4545
env:
4646
GITHUB_TOKEN: ${{ github.token }}
4747
with:
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
5555

5656
- name: Build Reference Documentation
57-
uses: microsoft/AL-Go/Actions/BuildReferenceDocumentation@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
57+
uses: microsoft/AL-Go/Actions/BuildReferenceDocumentation@a2a51be438318a7e355fa9044815cf7890ffed1a
5858
with:
5959
shell: powershell
6060
artifacts: 'latest'
@@ -71,7 +71,7 @@ jobs:
7171

7272
- name: Finalize the workflow
7373
if: always()
74-
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
74+
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@a2a51be438318a7e355fa9044815cf7890ffed1a
7575
env:
7676
GITHUB_TOKEN: ${{ github.token }}
7777
with:

.github/workflows/IncrementVersionNumber.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@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
44+
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a2a51be438318a7e355fa9044815cf7890ffed1a
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@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
53+
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a2a51be438318a7e355fa9044815cf7890ffed1a
5454
with:
5555
shell: powershell
5656

5757
- name: Read settings
58-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
58+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
5959
with:
6060
shell: powershell
6161

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

7171
- name: Increment Version Number
72-
uses: microsoft/AL-Go/Actions/IncrementVersionNumber@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
72+
uses: microsoft/AL-Go/Actions/IncrementVersionNumber@a2a51be438318a7e355fa9044815cf7890ffed1a
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@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
82+
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@a2a51be438318a7e355fa9044815cf7890ffed1a
8383
env:
8484
GITHUB_TOKEN: ${{ github.token }}
8585
with:

.github/workflows/PullRequestHandler.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ jobs:
2828
if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request')
2929
runs-on: windows-latest
3030
steps:
31-
- uses: microsoft/AL-Go/Actions/VerifyPRChanges@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
31+
- uses: microsoft/AL-Go/Actions/VerifyPRChanges@a2a51be438318a7e355fa9044815cf7890ffed1a
3232

3333
Initialization:
3434
needs: [ PregateCheck ]
3535
if: (!failure() && !cancelled())
3636
runs-on: [ windows-latest ]
3737
outputs:
38-
githubRunner: ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
39-
githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
4038
projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
4139
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
4240
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
@@ -45,7 +43,7 @@ jobs:
4543
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
4644
steps:
4745
- name: Dump Workflow Information
48-
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
46+
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a2a51be438318a7e355fa9044815cf7890ffed1a
4947
with:
5048
shell: powershell
5149

@@ -57,13 +55,13 @@ jobs:
5755

5856
- name: Initialize the workflow
5957
id: init
60-
uses: microsoft/AL-Go/Actions/WorkflowInitialize@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
58+
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a2a51be438318a7e355fa9044815cf7890ffed1a
6159
with:
6260
shell: powershell
6361

6462
- name: Read settings
6563
id: ReadSettings
66-
uses: microsoft/AL-Go/Actions/ReadSettings@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
64+
uses: microsoft/AL-Go/Actions/ReadSettings@a2a51be438318a7e355fa9044815cf7890ffed1a
6765
with:
6866
shell: powershell
6967

@@ -74,7 +72,7 @@ jobs:
7472
7573
- name: Determine Projects To Build
7674
id: determineProjectsToBuild
77-
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
75+
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@a2a51be438318a7e355fa9044815cf7890ffed1a
7876
with:
7977
shell: powershell
8078
maxBuildDepth: ${{ env.workflowDepth }}
@@ -90,8 +88,8 @@ jobs:
9088
uses: ./.github/workflows/_BuildALGoProject.yaml
9189
secrets: inherit
9290
with:
93-
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
94-
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
91+
shell: ${{ matrix.githubRunnerShell }}
92+
runsOn: ${{ matrix.githubRunner }}
9593
checkoutRef: ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }}
9694
project: ${{ matrix.project }}
9795
projectName: ${{ matrix.projectName }}
@@ -113,8 +111,8 @@ jobs:
113111
uses: ./.github/workflows/_BuildALGoProject.yaml
114112
secrets: inherit
115113
with:
116-
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
117-
runsOn: ${{ needs.Initialization.outputs.githubRunner }}
114+
shell: ${{ matrix.githubRunnerShell }}
115+
runsOn: ${{ matrix.githubRunner }}
118116
checkoutRef: ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }}
119117
project: ${{ matrix.project }}
120118
projectName: ${{ matrix.projectName }}
@@ -133,15 +131,15 @@ jobs:
133131
steps:
134132
- name: Pull Request Status Check
135133
id: PullRequestStatusCheck
136-
uses: microsoft/AL-Go/Actions/PullRequestStatusCheck@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
134+
uses: microsoft/AL-Go/Actions/PullRequestStatusCheck@a2a51be438318a7e355fa9044815cf7890ffed1a
137135
env:
138136
GITHUB_TOKEN: ${{ github.token }}
139137
with:
140138
shell: powershell
141139

142140
- name: Finalize the workflow
143141
id: PostProcess
144-
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@564c339085ae0ffa74c5bde71c15fea7fe54bbf1
142+
uses: microsoft/AL-Go/Actions/WorkflowPostProcess@a2a51be438318a7e355fa9044815cf7890ffed1a
145143
if: success() || failure()
146144
env:
147145
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)