开始每日签到 #156
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: 开始每日签到 | |
on: | |
workflow_dispatch: | |
schedule: | |
# UTC 2点00分(北京时间 10点00分) | |
# 2/10 从 UTC 0点00分(北京时间 8点00分) 开始每隔 10 小时签到一次,防止网络问题导致的签到不上 | |
- cron: 0 0/10 * * * | |
# 标星时触发工作流程 | |
watch: | |
types: [started] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run checkin | |
run: | | |
python3 glados.py | |
env: | |
GLADOS_COOKIE: "${{ secrets.GLADOS_COOKIE }}" | |
PUSHPLUS_TOKEN: ${{ secrets.PUSHPLUS_TOKEN }} | |
- uses: gautamkrishnar/keepalive-workflow@master |