Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/actions/setup-powershell/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name: Setup PowerShell
description: Setup PowerShell (Core) at a given version
inputs:
version:
description: Powershell version to install
required: true

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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading