-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.03 KB
/
number-batch.yaml
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
31
32
33
34
35
36
37
38
39
name: number-batch
on:
workflow_dispatch:
inputs:
startDrwtNo:
description: 시작회차
default: ""
type: string
endDrwtNo:
description: 종료회차
default: ""
type: string
schedule:
- cron: '0 21 * * SUN' # 매주 일요일 21시
jobs:
number-batch:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Gradle
run: ./gradlew clean --stacktrace --build-file=./batch/build.gradle.kts --exclude-task test build
- name: Job Execute
run: java -jar --Dspring.profiles.active=prod --job.name=lottoNumberJob startDrwtNo=$START_DRWTNO endDrwtNo=$END_DRWTNO ./build/libs/batch-0.0.1-SNAPSHOT.jar
env:
START_DRWTNO: ${{ inputs.startDrwtNo }}
END_DRWTNO: ${{ inputs.endDrwtNo }}