tech-shrimp / githubactionsample Goto Github PK
View Code? Open in Web Editor NEWGithubAction的使用样例,天气推送,薅羊毛,打卡签到
License: MIT License
GithubAction的使用样例,天气推送,薅羊毛,打卡签到
License: MIT License
请问为什么天气预报推的是淄博的呢?
Traceback (most recent call last):
File "D:\me\GithubActionSample\daily_sign.py", line 30, in
response = requests.post(url=url, headers=headers, timeout=30)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\requests\adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
进程已结束,退出代码为 1
## 发现执行的结果为:活动现在挤不进去呀,待会再来试试吧
我看你都action也是这个错误,是接口有什么拦截吗
#此工作流将安装 Python 依赖项,运行测试并使用单个版本的 Python 进行 lint
#有关详细信息,请参阅:https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
名称: 天气预报推送
在:
时间表:
# 设置启动时间,为 UTC 时间, UTC23点 对应北京时间早7点
- 克龙 : '00 23 * * *'
workflow_dispatch:
权限:
内容:阅读
职位:
构建:
运行:Ubuntu-Latest
环境:
TZ: 亚洲/上海
步骤:
- 用途:动作/checkout@v3
- name: 设置 Python 3.12
用途:Actions/Setup-python@v3
与:
python版本:“3.12”
- name:安装依赖项
运行: |
python -m pip install --upgrade pip
如果 [ -f requirements.txt ];然后 pip install -r requirements.txt;FI
- 名称: 运行天气报告
运行: |
Python weather_report.py
环境:
APP_ID:${{ 机密。APP_ID }}
APP_SECRET:${{ 机密。APP_SECRET }}
OPEN_ID: ${{ 机密。OPEN_ID }}
TEMPLATE_ID: ${{ secrets.TEMPLATE_ID }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.