刷步数 #3836
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: | |
schedule: | |
- cron: '58 1,4,7,10,12,14,23 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v3 | |
- name: Update system and install zsh | |
run: | | |
sudo -E apt-get -qq update | |
sudo -E apt-get install zsh -y | |
- name: 初始化Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: 开始 | |
env: | |
CONFIG: ${{ secrets.CONFIG }} | |
run: | | |
pip3 install requests pytz | |
python3 main.py |