Skip to content

Commit 700b70d

Browse files
EmilienCourtEmilienCourt
authored andcommitted
Fix PSGallery. See PowerShell/PSResourceGet#1806
1 parent e36e932 commit 700b70d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/psgallery.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Publish to PowerShell Gallery
14-
run: docker run -v $GITHUB_WORKSPACE:/mount_point mcr.microsoft.com/dotnet/sdk:8.0 pwsh -Command Publish-PSResource -Path "/mount_point/DFIR-O365RC" -Repository "PSGallery" -ApiKey "${{ secrets.PSGALLERY_TOKEN }}" -SkipModuleManifestValidate $true
14+
env:
15+
APIKEY: ${{ secrets.PSGALLERY_TOKEN }}
16+
run: ./.github/workflows/publish_psgallery.ps1
17+
shell: pwsh
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Workaround for known issue: https://github.com/PowerShell/PSResourceGet/issues/1806
2+
Get-PSResourceRepository | Out-Null
3+
4+
Publish-PSResource -Path "$Env:GITHUB_WORKSPACE\DFIR-O365RC" -Repository "PSGallery" -ApiKey $Env:APIKEY -SkipModuleManifestValidate:$true

DFIR-O365RC/DFIR-O365RC.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
RootModule = '.\DFIR-O365RC.psm1'
88

99
# Version number of this module.
10-
ModuleVersion = '2.2.0'
10+
ModuleVersion = '2.2.1'
1111

1212
# Supported PSEditions
1313
CompatiblePSEditions = 'Core', 'Desktop'
@@ -109,6 +109,7 @@
109109
2.0.0 - Rework of the project: use of an application to do the log collection, instead of an authenticated user. Add Purview
110110
2.1.0 - Add Get-AADUsers
111111
2.2.0 - Get Purview results using Graph instead of PowerShell. Use ToJsonString() to fix case. Recover deleted items
112+
2.2.1 - Fix PSGallery CI
112113
'
113114
} # End of PSData hashtable
114115
} # End of PrivateData hashtable

0 commit comments

Comments
 (0)