Skip to content

Commit 247296a

Browse files
Refactor PowerShell installation steps: remove shared environment setup and directly set environment variables for each OS-specific installation step.
1 parent 4fb301b commit 247296a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@ inputs:
1616
runs:
1717
using: composite
1818
steps:
19-
- name: Set shared env
20-
shell: bash
21-
run: |
22-
echo "REQUESTED_VERSION=${{ inputs.Version }}" >> $GITHUB_ENV
23-
echo "REINSTALL=${{ inputs.Reinstall }}" >> $GITHUB_ENV
24-
2519
- name: Install PowerShell (Linux)
2620
if: runner.os == 'Linux'
27-
id: linux
21+
env:
22+
REQUESTED_VERSION: ${{ inputs.Version }}
23+
REINSTALL: ${{ inputs.Reinstall }}
2824
shell: bash
2925
run: |
3026
set -e
@@ -63,7 +59,9 @@ runs:
6359
6460
- name: Install PowerShell (macOS)
6561
if: runner.os == 'macOS'
66-
id: macos
62+
env:
63+
REQUESTED_VERSION: ${{ inputs.Version }}
64+
REINSTALL: ${{ inputs.Reinstall }}
6765
shell: bash
6866
run: |
6967
set -e
@@ -102,7 +100,9 @@ runs:
102100
103101
- name: Install PowerShell (Windows)
104102
if: runner.os == 'Windows'
105-
id: windows
103+
env:
104+
REQUESTED_VERSION: ${{ inputs.Version }}
105+
REINSTALL: ${{ inputs.Reinstall }}
106106
shell: powershell
107107
run: |
108108
function Log($Message) {

0 commit comments

Comments
 (0)