-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 896 Bytes
/
Copy pathupdate-data.yml
File metadata and controls
38 lines (32 loc) · 896 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
35
36
37
38
name: Waifu Generator Scheduling
on:
push:
branches: master
schedule:
- cron: '*/5 * * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
- run: yarn install
- name: Scrape data
- run: yarn dev
- name: Commit the data scrape
run: |
git config --local user.email "satyawikananda456@gmail.com"
git config --local user.name "satyawikananda"
git add -A
git commit -m ":zap: Update data scrape"
- name: Github push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}