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 4405b23 commit be87b59
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/GetWeatherToEMail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ jobs:
- name: 'Check out the repository to the runner'
uses: actions/checkout@v4

- name: 'Make the script files executable'
shell: bash
working-directory: ./.github/workflows
run: chmod +x weather.sh
# - name: 'Make the script files executable'
# shell: bash
# working-directory: ./.github/workflows
# run: chmod +x weather.sh

- name: 'Get weather report'
working-directory: ./.github/workflows
# working-directory: ./.github/workflows
shell: bash
run: |
./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
with:
serveraddress: smtp.qq.com
serverport: 465
serverport: 25
username: ${{ secrets.MAILUSERNAME }}
password: ${{ secrets.MAILPASSWORD }}
subject: Shenzhen Weather Report
Expand Down

0 comments on commit be87b59

Please sign in to comment.