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 1
1
name : Setup PowerShell
2
2
description : Setup PowerShell (Core) at a given version
3
- inputs :
4
- version :
5
- description : Powershell version to install
6
- required : true
7
3
8
4
runs :
9
5
using : composite
10
6
steps :
11
- # Set global environment variable for all subsequent steps
12
- - run : echo "POWERSHELL_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
13
- shell : bash
14
-
15
7
# Download the powershell '.tar.gz' archive
16
8
- 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"
17
9
shell : bash
Original file line number Diff line number Diff line change 75
75
- name : Setup PowerShell ${{ matrix.version }}
76
76
if : ${{ matrix.version != '' }}
77
77
uses : ./.github/actions/setup-powershell
78
- with :
79
- version : ${{ matrix.version }}
78
+ env :
79
+ POWERSHELL_VERSION : ${{ matrix.version }}
80
80
81
81
- run : $PSVersionTable
82
82
You can’t perform that action at this time.
0 commit comments