File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 11name : Setup PowerShell
22description : Setup PowerShell (Core) at a given version
3- inputs :
4- version :
5- description : Powershell version to install
6- required : true
73
84runs :
95 using : composite
106 steps :
11- # Set global environment variable for all subsequent steps
12- - run : echo "POWERSHELL_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
13- shell : bash
14-
157 # Download the powershell '.tar.gz' archive
168 - run : curl -L -o /tmp/powershell.tar.gz "https://github.com/PowerShell/PowerShell/releases/download/v$POWERSHELL_VERSION/powershell-$POWERSHELL_VERSION-linux-x64.tar.gz"
179 shell : bash
Original file line number Diff line number Diff line change 7575 - name : Setup PowerShell ${{ matrix.version }}
7676 if : ${{ matrix.version != '' }}
7777 uses : ./.github/actions/setup-powershell
78- with :
79- version : ${{ matrix.version }}
78+ env :
79+ POWERSHELL_VERSION : ${{ matrix.version }}
8080
8181 - run : $PSVersionTable
8282
You can’t perform that action at this time.
0 commit comments