-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 958 Bytes
/
update.yml
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
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v3
with:
path: |
node_modules
key: node-v${{ matrix.node-version }}-deps-${{ hashFiles('./yarn.lock') }}
- name: Yarn Install
run: |
yarn install
- name: Update sites
run: |
yarn run do
- name: Commit files
run: |
git add -N . # 新規ファイルを含める
if ! git diff --exit-code --quiet
then
git config --local user.email "[email protected]"
git config --local user.name "su-u"
git add .
git commit -m "Update: github actions"
git push
fi