Skip to content

Commit

Permalink
🤖 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkappa committed Oct 25, 2023
1 parent 67e6c33 commit a3734d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/GetWeatherToEMail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4

- name: 'Get weather report'
run: bash ./github/workflows/weather.sh
run: curl -H "Accept-Language: zh-CN" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" -o result.html https://wttr.in/Shenzhen

- name: 'Send mail'
uses: dawidd6/action-send-mail@master
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/weather.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
#!/bin/sh

set -eux

CITY=Shenzhen
LANGUAGE="zh-CN"
UNIT=m
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"

curl \
-H "Accept-Language: $LANGUAGE" \
-H "User-Agent: $UA" \
-o result.html \
https://wttr.in/$CITY
curl -H "Accept-Language: zh-CN" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" -o result.html https://wttr.in/Shenzhen

0 comments on commit a3734d0

Please sign in to comment.