Skip to content

Commit 30883a5

Browse files
author
Kristján Oddsson
authored
Merge bbea527 into 9af34d5
2 parents 9af34d5 + bbea527 commit 30883a5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update data
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: "0 8 * * *"
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Generate data
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 15.x
23+
- run: node generate.js
24+
- name: Commit & Push Generated Data
25+
run: |
26+
git config --local user.email "actions@github.com"
27+
git config --local user.name "Actions Auto Build"
28+
git add -f .
29+
git commit -m "docs: generate documents" || true
30+
git push --force origin HEAD:refs/heads/main

0 commit comments

Comments
 (0)