Run soushuba qiandao #40
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: Run soushuba qiandao | |
on: | |
push: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
schedule: | |
- cron: '0 21 * * *' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
SOUSHUBA_HOSTNAME: ${{ secrets.SOUSHUBA_HOSTNAME }} | |
SOUSHUBA_USERNAME: ${{ secrets.SOUSHUBA_USERNAME }} | |
SOUSHUBA_PASSWORD: ${{ secrets.SOUSHUBA_PASSWORD }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- run: python soushuba.py |