Skip to content

Commit 6bedc57

Browse files
authored
Merge pull request #57 from NovoaDev/update-al-go-system-files/main/250415002220
[main@7a47e66] Update AL-Go System Files from microsoft/AL-Go-PTE@main - a91a50b
2 parents 7a47e66 + 07746fb commit 6bedc57

21 files changed

+205
-159
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.4/Github-Helper.psm1' -folder $tmpFolder
46-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.4/AL-Go-Helper.ps1' -folder $tmpFolder
47-
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.4/Packages.json' -folder $tmpFolder | Out-Null
45+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/Github-Helper.psm1' -folder $tmpFolder
46+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/AL-Go-Helper.ps1' -folder $tmpFolder
47+
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/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.4/Github-Helper.psm1' -folder $tmpFolder
50-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.4/AL-Go-Helper.ps1' -folder $tmpFolder
51-
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.4/Packages.json' -folder $tmpFolder | Out-Null
49+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/Github-Helper.psm1' -folder $tmpFolder
50+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/AL-Go-Helper.ps1' -folder $tmpFolder
51+
DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/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": "6472dd494728483cee9b04dc7356fd6f2cc737b4"
7+
"templateSha": "a91a50b7fa2a88d8fa0b8eab99a66b9032ac476d"
88
}

.github/RELEASENOTES.copy.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
## v7.0
2+
3+
### Issues
4+
5+
- Issue 1519 Submitting to AppSource WARNING: AuthContext.Scopes is .. should be
6+
- Issue 1521 Dependencies not installed for multi project incremental PR build
7+
- Issue 1522 Strange warnings in Deploy job post update to AL-Go 6.4
8+
- BcContainerHelper settings were only read from .github/AL-Go-Settings.json, not allowing global settings in ALGoOrgSettings for TrustedNuGetFeeds, MemoryLimit and other things that should be possible to define globally
9+
- Issue 1526 When updating AL-Go system files, the update process (creating a PR or directly pushing to the branch) fails when there is a file or directory in the repo with the same name as the branch that is to be updated
10+
- Legacy code signing stopped working
11+
12+
### Page Scripting visualizer
13+
14+
Page scripting tests have been available for AL-Go for GitHub for a while but required manual inspection of the Page scripting artifact to see the results. It is now possible to get a quick overview in the job summary section of a CICD build, similar to how regular and bcpt test results are displayed.
15+
16+
No new settings are required. Test results will automatically be displayed if tests are enabled via the existing setting [pageScriptingTests](https://aka.ms/algosettings#pageScriptingTests).
17+
18+
### Support for deploying to sandbox environments from a pull request
19+
20+
AL-Go for GitHub now supports deploying from a PR. When using the 'Publish To Environment' workflow, it is now possible to input 'PR_X' as the App version, where 'X' is the PR Id. This will deploy the artifacts from the latest PR build to the chosen environment, if that build is completed and successful.
21+
22+
All apps, which were not built by the PR build will be deployed from the last known good build. You can find a notification on the PR build explaining which build is used as the last known good build.
23+
24+
> [!NOTE]
25+
> When deploying a PR build to a sandbox environment, the app will get a special version number, which is: major.minor.maxint.run-number. This means that the sandbox environment likely needs to be deleted after the testing has ended.
26+
127
## v6.4
228

329
### Deprecations

.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.4
44+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v7.0
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.4
53+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v7.0
5454
with:
5555
shell: powershell
5656

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

6262
- name: Read secrets
6363
id: ReadSecrets
64-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
64+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
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.4
72+
uses: microsoft/AL-Go-Actions/AddExistingApp@v7.0
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.4
82+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v7.0
8383
env:
8484
GITHUB_TOKEN: ${{ github.token }}
8585
with:

.github/workflows/CICD.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
4949
steps:
5050
- name: Dump Workflow Information
51-
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.4
51+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v7.0
5252
with:
5353
shell: powershell
5454

@@ -59,21 +59,21 @@ jobs:
5959

6060
- name: Initialize the workflow
6161
id: init
62-
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.4
62+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v7.0
6363
with:
6464
shell: powershell
6565

6666
- name: Read settings
6767
id: ReadSettings
68-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.4
68+
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
6969
with:
7070
shell: powershell
7171
get: type,powerPlatformSolutionFolder,useGitSubmodules
7272

7373
- name: Read submodules token
7474
id: ReadSubmodulesToken
7575
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
76-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
76+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
7777
with:
7878
shell: powershell
7979
gitHubSecrets: ${{ toJson(secrets) }}
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Determine Projects To Build
9696
id: determineProjectsToBuild
97-
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.4
97+
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v7.0
9898
with:
9999
shell: powershell
100100
maxBuildDepth: ${{ env.workflowDepth }}
@@ -107,23 +107,23 @@ jobs:
107107
108108
- name: Determine Delivery Target Secrets
109109
id: DetermineDeliveryTargetSecrets
110-
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.4
110+
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v7.0
111111
with:
112112
shell: powershell
113113
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
114114
checkContextSecrets: 'false'
115115

116116
- name: Read secrets
117117
id: ReadSecrets
118-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
118+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
119119
with:
120120
shell: powershell
121121
gitHubSecrets: ${{ toJson(secrets) }}
122122
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}
123123

124124
- name: Determine Delivery Targets
125125
id: DetermineDeliveryTargets
126-
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.4
126+
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v7.0
127127
env:
128128
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
129129
with:
@@ -133,7 +133,7 @@ jobs:
133133

134134
- name: Determine Deployment Environments
135135
id: DetermineDeploymentEnvironments
136-
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.4
136+
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v7.0
137137
env:
138138
GITHUB_TOKEN: ${{ github.token }}
139139
with:
@@ -149,21 +149,21 @@ jobs:
149149
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
150150

151151
- name: Read settings
152-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.4
152+
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
153153
with:
154154
shell: powershell
155155
get: templateUrl
156156

157157
- name: Read secrets
158158
id: ReadSecrets
159-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
159+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
160160
with:
161161
shell: powershell
162162
gitHubSecrets: ${{ toJson(secrets) }}
163163
getSecrets: 'ghTokenWorkflow'
164164

165165
- name: Check for updates to AL-Go system files
166-
uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.4
166+
uses: microsoft/AL-Go-Actions/CheckForUpdates@v7.0
167167
with:
168168
shell: powershell
169169
templateUrl: ${{ env.templateUrl }}
@@ -212,12 +212,12 @@ jobs:
212212
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
213213

214214
- name: Download artifacts
215-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
215+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
216216
with:
217217
path: '.artifacts'
218218

219219
- name: Read settings
220-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.4
220+
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
221221
with:
222222
shell: powershell
223223

@@ -226,7 +226,7 @@ jobs:
226226
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
227227

228228
- name: Build Reference Documentation
229-
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.4
229+
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v7.0
230230
with:
231231
shell: powershell
232232
artifacts: '.artifacts'
@@ -258,12 +258,12 @@ jobs:
258258
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
259259

260260
- name: Download artifacts
261-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
261+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
262262
with:
263263
path: '.artifacts'
264264

265265
- name: Read settings
266-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.4
266+
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
267267
with:
268268
shell: ${{ matrix.shell }}
269269
get: type,powerPlatformSolutionFolder
@@ -277,15 +277,15 @@ jobs:
277277
278278
- name: Read secrets
279279
id: ReadSecrets
280-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
280+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
281281
with:
282282
shell: ${{ matrix.shell }}
283283
gitHubSecrets: ${{ toJson(secrets) }}
284284
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'
285285

286286
- name: Deploy to Business Central
287287
id: Deploy
288-
uses: microsoft/AL-Go-Actions/Deploy@v6.4
288+
uses: microsoft/AL-Go-Actions/Deploy@v7.0
289289
env:
290290
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
291291
with:
@@ -297,7 +297,7 @@ jobs:
297297

298298
- name: Deploy to Power Platform
299299
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
300-
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.4
300+
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v7.0
301301
env:
302302
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
303303
with:
@@ -320,25 +320,25 @@ jobs:
320320
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
321321

322322
- name: Download artifacts
323-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
323+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
324324
with:
325325
path: '.artifacts'
326326

327327
- name: Read settings
328-
uses: microsoft/AL-Go-Actions/ReadSettings@v6.4
328+
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
329329
with:
330330
shell: powershell
331331

332332
- name: Read secrets
333333
id: ReadSecrets
334-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
334+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
335335
with:
336336
shell: powershell
337337
gitHubSecrets: ${{ toJson(secrets) }}
338338
getSecrets: '${{ matrix.deliveryTarget }}Context'
339339

340340
- name: Deliver
341-
uses: microsoft/AL-Go-Actions/Deliver@v6.4
341+
uses: microsoft/AL-Go-Actions/Deliver@v7.0
342342
env:
343343
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
344344
with:
@@ -358,7 +358,7 @@ jobs:
358358

359359
- name: Finalize the workflow
360360
id: PostProcess
361-
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.4
361+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v7.0
362362
env:
363363
GITHUB_TOKEN: ${{ github.token }}
364364
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.4
54+
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v7.0
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.4
63+
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v7.0
6464
with:
6565
shell: powershell
6666

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

7373
- name: Read secrets
7474
id: ReadSecrets
75-
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.4
75+
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
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.4
83+
uses: microsoft/AL-Go-Actions/CreateApp@v7.0
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.4
97+
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v7.0
9898
env:
9999
GITHUB_TOKEN: ${{ github.token }}
100100
with:

0 commit comments

Comments
 (0)