-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 889 Bytes
/
relearn.yml
File metadata and controls
34 lines (32 loc) · 889 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
31
32
33
34
name: relearn
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *' # 21:00 JST
jobs:
start:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- uses: actions/cache@v4
with:
path: node_modules
key: node-dependencies-${{ hashFiles('package-lock.json') }}
- name: Install JavaScript dependencies
run: |
npm ci
- name: Start
run: |
npm run build && npm start
env:
GOOGLE_DRIVE_CREDENTIALS: ${{ secrets.GOOGLE_DRIVE_CREDENTIALS }}
GOOGLE_DRIVE_FOLDER_ID: ${{ secrets.GOOGLE_DRIVE_FOLDER_ID }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}