From ef73ce78605c11e759e3af82f7f4a865e0a4f583 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 15:43:08 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20step=20to?= =?UTF-8?q?=20update=20PSResourceGet=20before=20publishing=20the=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bc750250..4f53330e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -287,6 +287,11 @@ jobs: name: module path: ${{ inputs.WorkingDirectory }}/outputs/module + - name: Update PSResourceGet + shell: pwsh + run: | + Update-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository + - name: Publish module uses: PSModule/Publish-PSModule@v2 with: From 090f562fbfbeae9cc9b21dec2ff98d72f12dc786 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 16:40:55 +0200 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20PSResour?= =?UTF-8?q?ceGet=20command=20to=20include=20-Scope=20AllUsers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4f53330e..cd8e7de7 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -290,7 +290,7 @@ jobs: - name: Update PSResourceGet shell: pwsh run: | - Update-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository + Update-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository -Scope AllUsers - name: Publish module uses: PSModule/Publish-PSModule@v2 From e4226a9e4b619986ba22c787c27c5a6ec890cf75 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 17:21:35 +0200 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20workflow?= =?UTF-8?q?=20to=20install=20PSResourceGet=20instead=20of=20updating=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index cd8e7de7..541d2702 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -290,7 +290,8 @@ jobs: - name: Update PSResourceGet shell: pwsh run: | - Update-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository -Scope AllUsers + Get-Module -ListAvailable + Install-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository -Scope AllUsers - name: Publish module uses: PSModule/Publish-PSModule@v2 From bf66c9f9f7f3505c20b5ba7fe2e46c012ff09b61 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 17:35:44 +0200 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20-Scope?= =?UTF-8?q?=20AllUsers=20from=20Install-PSResource=20command=20in=20workfl?= =?UTF-8?q?ow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 541d2702..d9be4e94 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -291,7 +291,7 @@ jobs: shell: pwsh run: | Get-Module -ListAvailable - Install-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository -Scope AllUsers + Install-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository - name: Publish module uses: PSModule/Publish-PSModule@v2 From 94a23a9d40b66cabb1eeea8c3ff47626e265c822 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 17:53:14 +0200 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20PSResour?= =?UTF-8?q?ceGet=20command=20to=20specify=20full=20module=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/workflow.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d9be4e94..79b22623 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -287,10 +287,9 @@ jobs: name: module path: ${{ inputs.WorkingDirectory }}/outputs/module - - name: Update PSResourceGet + - name: Update Microsoft.PowerShell.PSResourceGet shell: pwsh run: | - Get-Module -ListAvailable Install-PSResource -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery -TrustRepository - name: Publish module