Skip to content

Start

Start #1082

Workflow file for this run

# 每天6:30执行
# UTC 时间,北京时间需要 UTC+8
name: Start
on:
workflow_dispatch:
schedule:
- cron: '10 0 * * *'
jobs:
TiebaSignIn:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
env:
BDUSS: ${{ secrets.BDUSS }}
SCKEY: ${{ secrets.SCKEY }}
run: |
mvn compile exec:java -Dexec.mainClass="top.srcrs.Run" -Dexec.args="${BDUSS} ${SCKEY}"