Skip to content

Commit a652ca8

Browse files
committed
added make-config script to action
1 parent 177357d commit a652ca8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
paths:
55
- .github/workflows/update.yml
66
- scripts/make-places.js
7+
- scripts/make-config.js
78
schedule:
89
- cron: 0 0 * * *
910
permissions:
@@ -30,7 +31,9 @@ jobs:
3031
curl "https://docs.google.com/spreadsheets/d/1e7A-maXjmzd0lRcpZpeqjOmfRTZUZMOaxSYQaz_sr8I/gviz/tq?tqx=out:csv&sheet=translations" -o "raw-data/translations.csv"
3132
- name: Process data
3233
run: |-
33-
git diff --quiet raw-data/ || deno run --allow-read --allow-write --unstable scripts/make-places.js
34+
git diff --quiet raw-data/ \
35+
|| deno run --allow-read --allow-write --unstable scripts/make-places.js \
36+
&& deno run --allow-read --allow-write --unstable scripts/make-config.js
3437
- name: Commit changes
3538
run: |-
3639
git config user.name "github action"

scripts/make-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const config = {};
99

1010
for (const key of keys) {
1111
const path = `raw-data/${key}.csv`;
12+
1213
console.log(`Reading ${path}`);
1314
const data = csvParse(await readTXT(path), autoType);
1415

0 commit comments

Comments
 (0)