-
-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (37 loc) · 1 KB
/
sync.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
39
40
name: cron
on:
schedule:
- cron: "1 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "13.x"
# Maybe switch to https://github.com/bahmutov/npm-install
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: |
npm ci
- name: Collect
run: |
npm start
- name: Add
run: |
git config --global user.email "[email protected]"
git config --global user.name "David Wells Bot"
git status
git add .
git commit -m ":package: Update Downloads"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}