Skip to content

Commit ca8678c

Browse files
chore: sync actions from [email protected] (#186)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0dda482 commit ca8678c

30 files changed

Lines changed: 847 additions & 4367 deletions

‎setup-cli/action.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,24 @@ inputs:
1414
outputs:
1515
installed-version:
1616
description: 'The version that was installed'
17+
value: ${{ steps.install-windows.outputs.installed_version || steps.install-unix.outputs.installed_version }}
1718

1819
runs:
1920
using: 'composite'
2021
steps:
21-
- name: Install gh-aw CLI
22+
- name: Install gh-aw CLI (PowerShell)
23+
id: install-windows
24+
if: runner.os == 'Windows'
25+
shell: pwsh
26+
env:
27+
INPUT_VERSION: ${{ inputs.version }}
28+
GH_TOKEN: ${{ inputs.github-token }}
29+
ACTION_PATH: ${{ github.action_path }}
30+
run: '& "$env:ACTION_PATH/install.ps1"'
31+
32+
- name: Install gh-aw CLI (Bash)
33+
id: install-unix
34+
if: runner.os != 'Windows'
2235
shell: bash
2336
env:
2437
INPUT_VERSION: ${{ inputs.version }}

0 commit comments

Comments
 (0)