Skip to content

Commit

Permalink
Use PowerShell 7.3 for docs PR workflow (#330)
Browse files Browse the repository at this point in the history
platyPS currently adds -ProgressAction common parameter to all docs. Downgrading workflow to PS 7.3 until fixed
  • Loading branch information
fflaten authored Nov 17, 2024
1 parent 42e75ba commit be07726
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/generate-pester-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be07726

Please sign in to comment.