Skip to content

hongyiheng/weather-bot

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather-bot

企业微信天气信息推送 bot

示例

1. 创建 workflow

在你的任意一个 GitHub 仓库 .github/workflows/ 文件夹下创建一个 .yml 文件,如 cc.yml,内容如下:

name: qweather-bot

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  checkin:
    runs-on: ubuntu-latest
    steps:
      - uses: hongyiheng/weather-bot@v0.0.3
        with:
          email: ${{ secrets.CITY_CODE }}
          passwd: ${{ secrets.WEBHOOK }}

2. 配置 secrets 参数

在 GitHub 仓库的 Settings -> Secrets 路径下配置好 CITY_CODEWEBHOOK

参数获取: