Skip to content

Commit

Permalink
ci: supress exception on downloading cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed May 11, 2023
1 parent f90420d commit 20e3037
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/quickstart-windows-dev-gocqhttp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows Quickstart Dev (Mirai)
name: Windows Quickstart Dev (go-cqhttp)

on:
workflow_dispatch:
Expand Down Expand Up @@ -68,11 +68,14 @@ jobs:
cd C:/generated_files/chatgpt
..\python3.11\python.exe C:/generated_files/python3.11/get-pip.py
..\python3.11\python.exe -m pip install -r requirements.txt
..\python3.11\python.exe -c "from pycloudflared import try_cloudflare; try_cloudflare(-1)"
..\python3.11\python.exe -c exec("""from pycloudflared import try_cloudflare \ntry: try_cloudflare(-1)\nexcept:... """)
echo "Packing..."
cd C:/generated_files
7z a quickstart-windows-go-cqhttp-amd64.zip C:\generated_files\*
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: quickstart-windows-go-cqhttp-amd64.zip
path: |
C:\generated_files\
C:\generated_files\quickstart-windows-go-cqhttp-amd64.zip
8 changes: 5 additions & 3 deletions .github/workflows/quickstart-windows-dev-mirai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ jobs:
cd C:/generated_files/chatgpt
..\python3.11\python.exe C:/generated_files/python3.11/get-pip.py
..\python3.11\python.exe -m pip install -r requirements.txt
..\python3.11\python.exe -c "from pycloudflared import try_cloudflare; try_cloudflare(-1)"
..\python3.11\python.exe -c exec("""from pycloudflared import try_cloudflare \ntry: try_cloudflare(-1)\nexcept:... """)
echo "Packing..."
cd C:/generated_files
7z a quickstart-windows-mirai-amd64.zip C:\generated_files\*
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: quickstart-windows-mirai-amd64.zip
path: |
C:\generated_files\
C:\generated_files\quickstart-windows-mirai-amd64.zip
1 change: 1 addition & 0 deletions .github/workflows/quickstart-windows-gocqhttp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
cd C:/generated_files/chatgpt
..\python3.11\python.exe C:/generated_files/python3.11/get-pip.py
..\python3.11\python.exe -m pip install -r requirements.txt
..\python3.11\python.exe -c exec("""from pycloudflared import try_cloudflare \ntry: try_cloudflare(-1)\nexcept:... """)
echo "Packing..."
cd C:/generated_files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quickstart-windows-mirai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
cd C:/generated_files/chatgpt
..\python3.11\python.exe C:/generated_files/python3.11/get-pip.py
..\python3.11\python.exe -m pip install -r requirements.txt
..\python3.11\python.exe -c "from pycloudflared import try_cloudflare; try_cloudflare(-1)"
..\python3.11\python.exe -c exec("""from pycloudflared import try_cloudflare \ntry: try_cloudflare(-1)\nexcept:... """)
echo "Packing..."
cd C:/generated_files
Expand Down

0 comments on commit 20e3037

Please sign in to comment.