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