From be0772625cab300eb2eb7c13613c7c5d6ff6a4fc Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:56:48 +0100 Subject: [PATCH] Use PowerShell 7.3 for docs PR workflow (#330) platyPS currently adds -ProgressAction common parameter to all docs. Downgrading workflow to PS 7.3 until fixed --- .github/workflows/generate-pester-docs.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/generate-pester-docs.yml b/.github/workflows/generate-pester-docs.yml index df3985a..d20b8f6 100644 --- a/.github/workflows/generate-pester-docs.yml +++ b/.github/workflows/generate-pester-docs.yml @@ -37,6 +37,18 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + # TEMP workaround for https://github.com/PowerShell/platyPS/issues/663 affection PS 7.4+ used in runner images + - name: Downgrade to PowerShell 7.3 + shell: pwsh + run: | + sudo apt-get remove powershell + curl https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -o packages-microsoft-prod.deb + sudo dpkg -i packages-microsoft-prod.deb + sudo apt-get update + sudo apt-get install -y powershell=7.3.11-1.deb + rm packages-microsoft-prod.deb + pwsh --version + # This step will also install and import modules incl. selected Pester-version - name: Update Command Reference id: commands