Skip to content

Commit 9fc2f9e

Browse files
Move repeated action env values to composite runs level
1 parent 38a2506 commit 9fc2f9e

1 file changed

Lines changed: 9 additions & 19 deletions

File tree

action.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,27 @@ inputs:
3838

3939
runs:
4040
using: composite
41+
env:
42+
REQUESTED_VERSION: ${{ inputs.Version }}
43+
PRERELEASE: ${{ inputs.Prerelease }}
44+
GITHUB_TOKEN: ${{ inputs.Token }}
45+
GH_TOKEN: ${{ inputs.Token }}
46+
GH_HOST: ${{ inputs.Host }}
4147
steps:
4248
- name: Install PowerShell (Linux)
4349
if: runner.os == 'Linux'
4450
shell: bash
4551
working-directory: ${{ github.action_path }}
46-
env:
47-
REQUESTED_VERSION: ${{ inputs.Version }}
48-
PRERELEASE: ${{ inputs.Prerelease }}
49-
GITHUB_TOKEN: ${{ inputs.Token }}
50-
GH_TOKEN: ${{ inputs.Token }}
51-
GH_HOST: ${{ inputs.Host }}
52-
run: bash ./scripts/linux/install.sh # zizmor: ignore[github-env] GITHUB_PATH writes use hardcoded install dirs, not user input
52+
run: bash ./scripts/linux/install.sh
5353

5454
- name: Install PowerShell (macOS)
5555
if: runner.os == 'macOS'
5656
shell: bash
5757
working-directory: ${{ github.action_path }}
58-
env:
59-
REQUESTED_VERSION: ${{ inputs.Version }}
60-
PRERELEASE: ${{ inputs.Prerelease }}
61-
GITHUB_TOKEN: ${{ inputs.Token }}
62-
GH_TOKEN: ${{ inputs.Token }}
63-
GH_HOST: ${{ inputs.Host }}
64-
run: bash ./scripts/macos/install.sh # zizmor: ignore[github-env] GITHUB_PATH writes use hardcoded install dirs, not user input
58+
run: bash ./scripts/macos/install.sh
6559

6660
- name: Install PowerShell (Windows)
6761
if: runner.os == 'Windows'
6862
shell: powershell
6963
working-directory: ${{ github.action_path }}
70-
env:
71-
REQUESTED_VERSION: ${{ inputs.Version }}
72-
PRERELEASE: ${{ inputs.Prerelease }}
73-
GITHUB_TOKEN: ${{ inputs.Token }}
74-
run: ./scripts/windows/install.ps1 # zizmor: ignore[github-env] GITHUB_PATH writes use hardcoded install dirs, not user input
64+
run: ./scripts/windows/install.ps1

0 commit comments

Comments
 (0)