Daily Tieba Sign-In #1875
This file contains hidden or 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: Daily Tieba Sign-In | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '30 22 * * *' # UTC 22:30 = 北京时间次日 06:30 | |
| jobs: | |
| signin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Run sign-in | |
| env: | |
| BDUSS: ${{ secrets.BDUSS }} | |
| run: python run.py | |
| workflow-keepalive: | |
| if: github.event_name == 'schedule' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write | |
| steps: | |
| - uses: liskin/gh-workflow-keepalive@v1 |