Skip to content

Commit 86fe5dd

Browse files
authored
ci: setup-powershell env var (#88)
* fix: setup-powershell env var * fixup
1 parent 398e84d commit 86fe5dd

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/actions/setup-powershell/action.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
name: Setup PowerShell
22
description: Setup PowerShell (Core) at a given version
3-
inputs:
4-
version:
5-
description: Powershell version to install
6-
required: true
73

84
runs:
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

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
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

0 commit comments

Comments
 (0)