Skip to content

Commit ef73ce7

Browse files
🩹 [Patch]: Add step to update PSResourceGet before publishing the module
1 parent 4e5d875 commit ef73ce7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ jobs:
287287
name: module
288288
path: ${{ inputs.WorkingDirectory }}/outputs/module
289289

290+
- name: Update PSResourceGet
291+
shell: pwsh
292+
run: |
293+
Update-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository
294+
290295
- name: Publish module
291296
uses: PSModule/Publish-PSModule@v2
292297
with:

0 commit comments

Comments
 (0)