Skip to content

Commit 838b457

Browse files
Move env block from runs level to individual steps
1 parent 59e35d5 commit 838b457

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

action.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,39 @@ inputs:
4040

4141
runs:
4242
using: composite
43-
env:
44-
REQUESTED_VERSION: ${{ inputs.Version }}
45-
PRERELEASE: ${{ inputs.Prerelease }}
46-
GITHUB_TOKEN: ${{ inputs.Token }}
47-
GH_TOKEN: ${{ inputs.Token }}
48-
GH_HOST: ${{ inputs.Host }}
4943
steps:
50-
- name: Install PowerShell (Linux)
44+
- name: Install PowerShell
5145
if: runner.os == 'Linux'
5246
shell: bash
5347
working-directory: ${{ github.action_path }}
48+
env:
49+
REQUESTED_VERSION: ${{ inputs.Version }}
50+
PRERELEASE: ${{ inputs.Prerelease }}
51+
GITHUB_TOKEN: ${{ inputs.Token }}
52+
GH_TOKEN: ${{ inputs.Token }}
53+
GH_HOST: ${{ inputs.Host }}
5454
run: bash ./scripts/linux/install.sh
5555

56-
- name: Install PowerShell (macOS)
56+
- name: Install PowerShell
5757
if: runner.os == 'macOS'
5858
shell: bash
5959
working-directory: ${{ github.action_path }}
60+
env:
61+
REQUESTED_VERSION: ${{ inputs.Version }}
62+
PRERELEASE: ${{ inputs.Prerelease }}
63+
GITHUB_TOKEN: ${{ inputs.Token }}
64+
GH_TOKEN: ${{ inputs.Token }}
65+
GH_HOST: ${{ inputs.Host }}
6066
run: bash ./scripts/macos/install.sh
6167

62-
- name: Install PowerShell (Windows)
68+
- name: Install PowerShell
6369
if: runner.os == 'Windows'
6470
shell: powershell
6571
working-directory: ${{ github.action_path }}
72+
env:
73+
REQUESTED_VERSION: ${{ inputs.Version }}
74+
PRERELEASE: ${{ inputs.Prerelease }}
75+
GITHUB_TOKEN: ${{ inputs.Token }}
76+
GH_TOKEN: ${{ inputs.Token }}
77+
GH_HOST: ${{ inputs.Host }}
6678
run: ./scripts/windows/install.ps1

0 commit comments

Comments
 (0)