Skip to content

Commit

Permalink
update action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed Dec 22, 2023
1 parent 2596be5 commit 03b5ad6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ runs:
run: echo 🤖 OS runner is $(uname)
shell: bash

- name: Install STK CLI for STG
- name: Install STK CLI - STG
run: |
if [[ "$(uname)" = "Linux" ]]; then
curl -fsSL https://stk.stackspot.com/install-stg.sh | bash
curl -fsSL https://stk-cli.stg.stackspot.com/install-stg.sh | bash
sudo mv /home/runner/.stk-stg/bin/* /usr/local/bin
elif [[ "$(uname)" = "Darwin" ]]; then
curl -fsSL https://stk.stackspot.com/install-stg.sh | bash
curl -fsSL https://stk-cli.stg.stackspot.com/install-stg.sh | bash
sudo mv /Users/runner/.stk-stg/bin/* /usr/local/bin
mv /usr/local/bin/stk-stg /usr/local/bin/stk
else
Expand All @@ -36,11 +36,14 @@ runs:
./vcpkg integrate install
vcpkg install curl[tool]
cd $GITHUB_WORKSPACE
curl https://stk.stackspot.com/installer/windows/stk-stg.exe --output stk-stg.exe
curl https://stk-cli.stg.stackspot.com/installer/windows/stk-stg.exe --output stk-stg.exe
./stk-stg.exe upgrade
mv stk-stg.exe /bin
fi
shell: bash

- name: Show STK CLI version
run: stk-stg --version

- name: Login to StackSpot Account
run: stk-stg login --client-id=${{ inputs.client_id }} --client-key=${{ inputs.client_key }} --realm=${{ inputs.realm }}
Expand Down

0 comments on commit 03b5ad6

Please sign in to comment.