Skip to content

Commit 0eacf7b

Browse files
committed
bot: try to fix gha
1 parent 552ed8e commit 0eacf7b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

chatgpt-cli/action.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ runs:
1111
env:
1212
GH_ACTION_REF: ${{ github.action_ref || github.ref_name }}
1313
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
1716
- if: runner.os == 'macOS'
1817
shell: bash
1918
env:
2019
GH_ACTION_REF: ${{ github.action_ref || github.ref_name }}
2120
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

0 commit comments

Comments
 (0)