Skip to content

Commit f4087cd

Browse files
committed
fix: setup-powershell env var
1 parent 398e84d commit f4087cd

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
# Set global environment variable for all subsequent steps
12-
- run: echo "POWERSHELL_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
13-
shell: bash
14-
1511
# Download the powershell '.tar.gz' archive
1612
- 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"
1713
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)