Commit a2a51be 1 parent 564c339 commit a2a51be Copy full SHA for a2a51be
File tree 16 files changed +36
-40
lines changed
AppSource App/.github/workflows
Per Tenant Extension/.github/workflows
16 files changed +36
-40
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,11 @@ function ReadSettings {
768
768
if ($settings.shell -ne " powershell" -and $settings.shell -ne " pwsh" ) {
769
769
throw " Invalid value for setting: shell: $ ( $settings.githubRunnerShell ) "
770
770
}
771
+ if (($settings.githubRunner -like " ubuntu-*" ) -and ($settings.githubRunnerShell -eq " powershell" )) {
772
+ Write-Host " Switching shell to pwsh for ubuntu"
773
+ $settings.githubRunnerShell = " pwsh"
774
+ }
775
+
771
776
if ($settings.projectName -eq ' ' ) {
772
777
$settings.projectName = $project # Default to project path as project name
773
778
}
Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ function Test-SettingsJson {
65
65
Test-Property - settingsDescription $settingsDescription - json $json - key ' templateUrl' - should
66
66
}
67
67
if ($type -eq ' Project' ) {
68
- # GitHubRunner should not be in a project settings file (only read from repo or workflow settings)
69
- Test-Property - settingsDescription $settingsDescription - json $json - key ' githubRunner' - shouldnot
68
+ # Test for things that should / should not exist in a project settings file
70
69
Test-Property - settingsDescription $settingsDescription - json $json - key ' bcContainerHelperVersion' - shouldnot
71
70
}
72
71
if ($type -eq ' Workflow' ) {
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ function CreateBuildDimensions {
156
156
157
157
foreach ($project in $projects ) {
158
158
$projectSettings = ReadSettings - project $project - baseFolder $baseFolder
159
+ $gitHubRunner = $projectSettings.githubRunner.Split (' ,' ).Trim() | ConvertTo-Json - compress
160
+ $githubRunnerShell = $projectSettings.githubRunnerShell
159
161
$buildModes = @ ($projectSettings.buildModes )
160
162
161
163
if (! $buildModes ) {
@@ -168,6 +170,8 @@ function CreateBuildDimensions {
168
170
project = $project
169
171
projectName = $projectSettings.projectName
170
172
buildMode = $buildMode
173
+ gitHubRunner = $gitHubRunner
174
+ githubRunnerShell = $githubRunnerShell
171
175
}
172
176
}
173
177
}
Original file line number Diff line number Diff line change 2
2
3
3
- Issue 1184 Publish to Environment fails on 'Permission Denied'
4
4
5
+ ### Allow GitHubRunner and GitHubRunnerShell as project settings
6
+
7
+ 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.
8
+
5
9
## v5.3
6
10
7
11
### Issues
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ jobs:
152
152
uses : ./.github/workflows/_BuildALGoProject.yaml
153
153
secrets : inherit
154
154
with :
155
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
156
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
155
+ shell : ${{ matrix .githubRunnerShell }}
156
+ runsOn : ${{ matrix .githubRunner }}
157
157
project : ${{ matrix.project }}
158
158
projectName : ${{ matrix.projectName }}
159
159
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 35
35
if : (!failure() && !cancelled())
36
36
runs-on : [ windows-latest ]
37
37
outputs :
38
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
39
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
40
38
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
41
39
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
42
40
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
90
88
uses : ./.github/workflows/_BuildALGoProject.yaml
91
89
secrets : inherit
92
90
with :
93
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
94
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
91
+ shell : ${{ matrix .githubRunnerShell }}
92
+ runsOn : ${{ matrix .githubRunner }}
95
93
checkoutRef : ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }}
96
94
project : ${{ matrix.project }}
97
95
projectName : ${{ matrix.projectName }}
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ jobs:
152
152
id : sign
153
153
uses : microsoft/AL-Go-Actions/Sign@main
154
154
with :
155
- shell : ${{ needs.Initialization.outputs.githubRunnerShell }}
155
+ shell : ${{ inputs.shell }}
156
156
azureCredentialsJson : ' ${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}'
157
157
pathToFiles : ' ${{ inputs.project }}/.buildartifacts/Apps/*.app'
158
158
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ jobs:
152
152
uses : ./.github/workflows/_BuildALGoProject.yaml
153
153
secrets : inherit
154
154
with :
155
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
156
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
155
+ shell : ${{ matrix .githubRunnerShell }}
156
+ runsOn : ${{ matrix .githubRunner }}
157
157
project : ${{ matrix.project }}
158
158
projectName : ${{ matrix.projectName }}
159
159
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 22
22
needs : [ ]
23
23
runs-on : [ windows-latest ]
24
24
outputs :
25
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
26
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
27
25
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
28
26
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
29
27
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
75
73
uses : ./.github/workflows/_BuildALGoProject.yaml
76
74
secrets : inherit
77
75
with :
78
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
79
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
76
+ shell : ${{ matrix .githubRunnerShell }}
77
+ runsOn : ${{ matrix .githubRunner }}
80
78
project : ${{ matrix.project }}
81
79
projectName : ${{ matrix.projectName }}
82
80
buildMode : ${{ matrix.buildMode }}
Original file line number Diff line number Diff line change 35
35
if : (!failure() && !cancelled())
36
36
runs-on : [ windows-latest ]
37
37
outputs :
38
- githubRunner : ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
39
- githubRunnerShell : ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
40
38
projects : ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
41
39
projectDependenciesJson : ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
42
40
buildOrderJson : ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
90
88
uses : ./.github/workflows/_BuildALGoProject.yaml
91
89
secrets : inherit
92
90
with :
93
- shell : ${{ needs.Initialization.outputs .githubRunnerShell }}
94
- runsOn : ${{ needs.Initialization.outputs .githubRunner }}
91
+ shell : ${{ matrix .githubRunnerShell }}
92
+ runsOn : ${{ matrix .githubRunner }}
95
93
checkoutRef : ${{ github.event_name == 'pull_request' && github.sha || format('refs/pull/{0}/merge', github.event.pull_request.number) }}
96
94
project : ${{ matrix.project }}
97
95
projectName : ${{ matrix.projectName }}
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ jobs:
152
152
id : sign
153
153
uses : microsoft/AL-Go-Actions/Sign@main
154
154
with :
155
- shell : ${{ needs.Initialization.outputs.githubRunnerShell }}
155
+ shell : ${{ inputs.shell }}
156
156
azureCredentialsJson : ' ${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}'
157
157
pathToFiles : ' ${{ inputs.project }}/.buildartifacts/Apps/*.app'
158
158
You can’t perform that action at this time.
0 commit comments