File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,12 @@ runs:
11
11
env :
12
12
GH_ACTION_REF : ${{ github.action_ref || github.ref_name }}
13
13
run : |
14
- curl -Ls https://github.com/kezhenxu94/chatgpt-java/releases/download/$GH_ACTION_REF/chatgpt-cli.ubuntu -o chatgpt-cli
15
- chmod +x chatgpt-cli
16
- sudo mv chatgpt-cli /usr/local/bin/chatgpt
14
+ sudo curl -Ls https://github.com/kezhenxu94/chatgpt-java/releases/download/${{ env.GH_ACTION_REF }}/chatgpt-cli.ubuntu -o /usr/local/bin/chatgpt
15
+ sudo chmod +x /usr/local/bin/chatgpt
17
16
- if : runner.os == 'macOS'
18
17
shell : bash
19
18
env :
20
19
GH_ACTION_REF : ${{ github.action_ref || github.ref_name }}
21
20
run : |
22
- curl -Ls https://github.com/kezhenxu94/chatgpt-java/releases/download/$GH_ACTION_REF/chatgpt-cli.macos -o chatgpt-cli
23
- chmod +x chatgpt-cli
24
- sudo mv chatgpt-cli /usr/local/bin/chatgpt
21
+ sudo curl -Ls https://github.com/kezhenxu94/chatgpt-java/releases/download/${{ env.GH_ACTION_REF }}/chatgpt-cli.macos -o /usr/local/bin/chatgpt
22
+ sudo chmod +x /usr/local/bin/chatgpt
You can’t perform that action at this time.
0 commit comments