Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create version.json with version and commit hash
- name: Create version.json
run: |
VERSION=$(cat version_latest.txt | tr -d '[:space:]')
SHORT_SHA="${GITHUB_SHA::7}"
echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json

- name: Build and stage modules
shell: pwsh
run: ./Tools/Build-DevApiModules.ps1

# Create ZIP File in a New Source Directory
- name: Prepare and Zip Release Files
if: env.tag_exists == 'false'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/upload_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
SHORT_SHA="${GITHUB_SHA::7}"
echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json

- name: Build and stage modules
shell: pwsh
run: ./Tools/Build-DevApiModules.ps1

# Create ZIP File in a New Source Directory
- name: Prepare and Zip Release Files
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function New-GraphGetRequest {
} else {
if ($Data.PSObject.Properties.Name -contains 'value') { $data.value } else { $Data }
if ($noPagination -eq $true) {
if ($Caller -eq 'Get-GraphRequestList') {
if ($Caller -eq 'Get-GraphRequestList' -and $data.'@odata.nextLink') {
@{ 'nextLink' = $data.'@odata.nextLink' }
}
$nextURL = $null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,13 @@ function Invoke-ListGraphRequest {
if ($NextLink -and $Request.Query.TenantFilter -ne 'AllTenants') {
Write-Host "NextLink: $NextLink"
$Metadata['nextLink'] = $NextLink
} else {
$Metadata.Remove('nextLink')
}
# Remove nextLink trailing object only if its the last item
# Remove nextLink trailing object only if it's the last item
$Results = $Results | Where-Object { $_.PSObject.Properties.Name -notcontains 'nextLink' }
} else {
$Metadata.Remove('nextLink')
}
if ($Request.Query.ListProperties) {
$Columns = ($Results | Select-Object -First 1).PSObject.Properties.Name
Expand Down
2 changes: 1 addition & 1 deletion host.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"distributedTracingEnabled": false,
"version": "None"
},
"defaultVersion": "10.3.1",
"defaultVersion": "10.4.1",
"versionMatchStrategy": "Strict",
"versionFailureStrategy": "Fail"
}
Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.4.0
10.4.1