Skip to content

Commit fa537c6

Browse files
committed
chore: reflect changes in technology data faster
Execute the technology update GitHub Action every 15 minutes. Clean the build folder when building in Netlify. For some reason even if the changes in the JSON are commited and picked up by Netlify, the website still uses the previous version of the data. I suspect that Docusaurus does not see any change in the markdown and thus uses the same `build` folder as production. This is similar to what happens with its watch system when running `npm start`: There has to be a change in a md file to be picked up and reflected.
1 parent a4c812c commit fa537c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/update-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
schedule:
7-
- cron: "0 19 * * *"
7+
- cron: "*/15 * * * *"
88

99
jobs:
1010
update-data:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
88
"build": "docusaurus build",
9+
"build-ci": "rm -rf build/ && docusaurus build",
910
"swizzle": "docusaurus swizzle",
1011
"deploy": "docusaurus deploy",
1112
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)