-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (35 loc) · 1008 Bytes
/
nodejs.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
41
42
43
44
45
46
name: generate-lists
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '59 4,10,16,22 * * *'
jobs:
build:
name: Build
runs-on: self-hosted
strategy:
matrix:
node-version: [18.x]
steps:
- name: Cleanup
run: rm -rf *
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm install
- name: Generate files
run: npm start
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Action Bot"
git config --local commit.gpgsign false
git commit -m "Updated List" --allow-empty -- files
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}