Skip to content

Commit f77ffa6

Browse files
authored
Dev to hotfix (KelvinTegelaar#2017)
2 parents 61b43b9 + 2a361a8 commit f77ffa6

6 files changed

Lines changed: 23 additions & 4 deletions

File tree

‎.github/workflows/publish_release.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ jobs:
9595
env:
9696
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9797

98+
# Create version.json with version and commit hash
99+
- name: Create version.json
100+
run: |
101+
VERSION=$(cat version_latest.txt | tr -d '[:space:]')
102+
SHORT_SHA="${GITHUB_SHA::7}"
103+
echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json
104+
105+
- name: Build and stage modules
106+
shell: pwsh
107+
run: ./Tools/Build-DevApiModules.ps1
108+
98109
# Create ZIP File in a New Source Directory
99110
- name: Prepare and Zip Release Files
100111
if: env.tag_exists == 'false'

‎.github/workflows/upload_dev.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
SHORT_SHA="${GITHUB_SHA::7}"
2626
echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json
2727
28+
- name: Build and stage modules
29+
shell: pwsh
30+
run: ./Tools/Build-DevApiModules.ps1
31+
2832
# Create ZIP File in a New Source Directory
2933
- name: Prepare and Zip Release Files
3034
run: |

‎Modules/CIPPCore/Public/GraphHelper/New-GraphGetRequest.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function New-GraphGetRequest {
107107
} else {
108108
if ($Data.PSObject.Properties.Name -contains 'value') { $data.value } else { $Data }
109109
if ($noPagination -eq $true) {
110-
if ($Caller -eq 'Get-GraphRequestList') {
110+
if ($Caller -eq 'Get-GraphRequestList' -and $data.'@odata.nextLink') {
111111
@{ 'nextLink' = $data.'@odata.nextLink' }
112112
}
113113
$nextURL = $null

‎Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListGraphRequest.ps1‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,13 @@ function Invoke-ListGraphRequest {
159159
if ($NextLink -and $Request.Query.TenantFilter -ne 'AllTenants') {
160160
Write-Host "NextLink: $NextLink"
161161
$Metadata['nextLink'] = $NextLink
162+
} else {
163+
$Metadata.Remove('nextLink')
162164
}
163-
# Remove nextLink trailing object only if its the last item
165+
# Remove nextLink trailing object only if it's the last item
164166
$Results = $Results | Where-Object { $_.PSObject.Properties.Name -notcontains 'nextLink' }
167+
} else {
168+
$Metadata.Remove('nextLink')
165169
}
166170
if ($Request.Query.ListProperties) {
167171
$Columns = ($Results | Select-Object -First 1).PSObject.Properties.Name

‎host.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"distributedTracingEnabled": false,
1717
"version": "None"
1818
},
19-
"defaultVersion": "10.3.1",
19+
"defaultVersion": "10.4.1",
2020
"versionMatchStrategy": "Strict",
2121
"versionFailureStrategy": "Fail"
2222
}

‎version_latest.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.4.0
1+
10.4.1

0 commit comments

Comments
 (0)