From f4087cdc8a5253b0c424919f06c7902f194da15f Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 28 Jul 2025 20:39:40 +0200 Subject: [PATCH 1/2] fix: setup-powershell env var --- .github/actions/setup-powershell/action.yml | 4 ---- .github/workflows/build.yml | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-powershell/action.yml b/.github/actions/setup-powershell/action.yml index 68648aa..ab2cd71 100644 --- a/.github/actions/setup-powershell/action.yml +++ b/.github/actions/setup-powershell/action.yml @@ -8,10 +8,6 @@ inputs: runs: using: composite steps: - # Set global environment variable for all subsequent steps - - run: echo "POWERSHELL_VERSION=${{ inputs.version }}" >> $GITHUB_ENV - shell: bash - # Download the powershell '.tar.gz' archive - 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" shell: bash diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cb69cf..8a40ac6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,8 +75,8 @@ jobs: - name: Setup PowerShell ${{ matrix.version }} if: ${{ matrix.version != '' }} uses: ./.github/actions/setup-powershell - with: - version: ${{ matrix.version }} + env: + POWERSHELL_VERSION: ${{ matrix.version }} - run: $PSVersionTable From 153ab9416477fd668d120eb6c7b0a0277f145ea3 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 28 Jul 2025 20:42:11 +0200 Subject: [PATCH 2/2] fixup --- .github/actions/setup-powershell/action.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/actions/setup-powershell/action.yml b/.github/actions/setup-powershell/action.yml index ab2cd71..8ceea74 100644 --- a/.github/actions/setup-powershell/action.yml +++ b/.github/actions/setup-powershell/action.yml @@ -1,9 +1,5 @@ name: Setup PowerShell description: Setup PowerShell (Core) at a given version -inputs: - version: - description: Powershell version to install - required: true runs: using: composite