-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 762 Bytes
/
SJAlgorithm.yml
File metadata and controls
30 lines (25 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Auto Recommand
on:
schedule:
#Update Every Sunday 09:00 (UTC Time 00:00 Sun)
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./SJAlgorithmBot
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Package Clean
run: mvn clean
working-directory: ${{env.working-directory}}
- name: Packaging
run: mvn package
working-directory: ${{env.working-directory}}
- name: Run Recommand System
run: java -jar target/SJAlgorithmBot-1.0-SNAPSHOT.jar ${{secrets.SECRET_TOKEN}}
working-directory: ${{env.working-directory}}