potatoqualitee / psmodulecache

This action makes caching PowerShell modules from the PowerShell Gallery easy for Linux, Windows and macOS runners.
MIT License
31 stars 12 forks source link

Question about the second example of the readme.txt #30

Closed LaurentDardenne closed 2 years ago

LaurentDardenne commented 2 years ago

I do not understand the description of the second example of the readme.txt :

Using powershell on Windows. pwsh also works and is the default.


on: [push]

jobs:
  run-on-windows:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v2
    - name: Install and cache PowerShell modules
      id: psmodulecache
      uses: potatoqualitee/psmodulecache@v4.5
      with:
        modules-to-cache: PSFramework, PoshRSJob, dbatools:1.0.0
    - name: Show that the Action works
      shell: pwsh
      run: |
          Get-Module -Name PSFramework, PoshRSJob, dbatools -ListAvailable | Select Path

The 'powershell' shell is not used and the shell parameter of the psmodulecache action is missing, by default the 'pswh' shell is used. Is this a mistake or do I need to improve my googlish?

image