Skip to content

πŸ™ˆ update

πŸ™ˆ update #2

name: GitHub Actions Weather Bot
# θ§¦ε‘ζ‘δ»ΆοΌšεœ¨ push 到 main εˆ†ζ”―εŽ
on:
push:
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@v1
- name: 'Get weather report'
run: bash ./github/workflows/weather.sh
- 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]
from: GitHub Actions
content_type: text/html