Skip to content

tames100/GithubAction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

申请公众号测试账户

使用微信扫码即可 https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login

进入页面以后我们来获取到这四个值

appID appSecret openId template_id

image

想让谁收消息,谁就用微信扫二维码,然后出现在用户列表,获取微信号(openId) image

新增测试模板获得 template_id(模板ID) image

模板标题随便填,模板内容如下,可以根据需求自己定制

模板内容:

今天:{{date.DATA}} 地区:{{region.DATA}} 天气:{{weather.DATA}} 气温:{{temp.DATA}} 风向:{{wind_dir.DATA}} 对你说的话:{{today_note.DATA}} 

项目配置

Fork本项目 进入自己项目的Settings ----> Secrets and variables ---> Actions --> New repository secret 配置好以下四个值(见上文)

image

进入自己项目的Action ----> 天气预报推送 ---> weather_report.yml --> 修改cron表达式的执行时间 image

About

GitHubAction基础使用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%