@@ -32,40 +32,33 @@ runs:
3232 echo "STK_INSTALLED=false" >> "$GITHUB_ENV"
3333 fi
3434
35- - name : Download STK CLI
35+ - name : Install STK CLI
3636 if : env.STK_INSTALLED == 'false'
3737 shell : bash
3838 run : |
3939 curl \
4040 --fail \
4141 --http2-prior-knowledge \
4242 --location \
43- --output /tmp/stk.deb \
4443 --silent \
4544 --show-error \
4645 --tlsv1.3 \
47- https://stk.stackspot.com/installer/linux/stk.deb
48-
49- - name : Install STK CLI
50- if : env.STK_INSTALLED == 'false'
51- shell : bash
52- run : |
53- sudo dpkg --install /tmp/stk.deb || echo "Installation failed with exit code: $?"
54- export PATH=$PATH:$HOME/.stk/bin
46+ https://stk.stackspot.com/install.sh | bash
5547
5648 - name : Check if STK CLI Installed
5749 id : check_cli2
5850 shell : bash
5951 run : |
6052 if [ -f "$HOME/.stk/bin/stk" ]; then
6153 echo "STK_INSTALLED=true" >> "$GITHUB_ENV"
54+ echo "PATH=$PATH:$HOME/.stk/bin" >> "$GITHUB_ENV"
6255 else
6356 echo "STK_INSTALLED=false" >> "$GITHUB_ENV"
6457 fi
6558
6659 - name : Show STK CLI version
6760 shell : bash
68- run : $HOME/.stk/bin/ stk --version
61+ run : stk --version
6962
7063 - name : Login StackSpot
7164 shell : bash
@@ -74,12 +67,12 @@ runs:
7467 CLIENT_KEY : ${{ inputs.client_key }}
7568 REALM : ${{ inputs.realm }}
7669 run : |
77- $HOME/.stk/bin/ stk login --client-id $CLIENT_ID --client-key $CLIENT_KEY --realm $REALM
70+ stk login --client-id $CLIENT_ID --client-key $CLIENT_KEY --realm $REALM
7871
7972 - name : Run Command
8073 shell : bash
8174 run : |
82- $HOME/.stk/bin/ stk ${{ inputs.command_stk }}
75+ stk ${{ inputs.command_stk }}
8376
8477 - name : Show Error Log
8578 shell : bash
0 commit comments