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