Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd authored Jun 17, 2024
1 parent 3063ab8 commit df4b919
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,25 @@ runs:
run: echo 🤖 OS runner is $(uname)
shell: bash

- name: Install jq, curl, zip, and git
run: |
sudo apt-get update
sudo apt-get install -y jq curl zip git
- name: Install STK CLI
run: |
if [[ "$(uname)" = "Linux" ]]; then
curl -fsSL https://stk.stackspot.com/install.sh | bash
sudo mv /home/runner/.stk/bin/* /usr/local/bin
elif [[ "$(uname)" = "Darwin" ]]; then
curl -fsSL https://stk.stackspot.com/install.sh | bash
sudo mv /Users/runner/.stk/bin/* /usr/local/bin
else
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install curl[tool]
cd $GITHUB_WORKSPACE
curl https://stk.stackspot.com/installer/windows/stk.exe --output stk.exe
./stk.exe upgrade
mv stk.exe /bin
fi
cd /tmp
curl -fsSL https://stk.stackspot.com/install.sh | bash
echo "~/.stk/bin" >> $GITHUB_PATH
shell: bash

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

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

branding:
icon: 'terminal'
color: 'gray-dark'

0 comments on commit df4b919

Please sign in to comment.