hostloc checkin #263
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: hostloc checkin | |
on: | |
schedule: | |
# 每天执行3次 | |
- cron: "00 */12 * * *" | |
workflow_dispatch: | |
env: | |
HOSTLOC_USERNAME: ${{secrets.HOSTLOC_USERNAME}} | |
HOSTLOC_PASSWORD: ${{secrets.HOSTLOC_PASSWORD}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install requests | |
pip install pyaes | |
- name: Run checkin | |
run: python3 hostloc_auto_get_points.py | |