Bump Yikun/hub-mirror-action from 1.1 to 1.3 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |