Daily Tieba Sign-In #62
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 * * *' # 北京时间 6:30 (UTC+8) | |
| jobs: | |
| signin: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '8' | |
| cache: 'maven' # 使用官方推荐的 Maven 依赖缓存 | |
| - name: Build and execute | |
| env: | |
| BDUSS: ${{ secrets.BDUSS }} | |
| SCKEY: ${{ secrets.SCKEY }} | |
| run: | | |
| mvn -B compile exec:java \ | |
| -Dexec.mainClass="top.srcrs.Run" \ | |
| -Dexec.args="$BDUSS $SCKEY" |