Skip to content

🤖 测试

🤖 测试 #12

name: GitHub Actions Weather Bot
# 触发条件:在 push 到 main 分支后
on:
push:
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Codes'
uses: actions/checkout@v4
- name: 'Get weather report'
run: bash 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

Check failure on line 15 in .github/workflows/GetWeatherToEMail.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/GetWeatherToEMail.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: 'Send mail'
uses: dawidd6/action-send-mail@master
with:
serveraddress: smtp.qq.com
serverport: 465
username: ${{ secrets.MAILUSERNAME }}
password: ${{ secrets.MAILPASSWORD }}
subject: Shenzhen Weather Report
body: file://result.html
to: [email protected],[email protected]
from: XiNan GitHub Actions
content_type: text/html
# Optional carbon copy recipients:
# cc: [email protected],[email protected]
# Optional blind carbon copy recipients:
# bcc: [email protected],[email protected]
# Optional priority: 'high', 'normal' (default) or 'low'
# priority: low