Minimize diffs by moving wiki meta cache out of VCS

This commit is contained in:
mtkennerly 2022-10-11 05:25:06 +08:00
parent 206b2f5ea9
commit 1cc65db867
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 6 additions and 2 deletions

View file

@ -15,6 +15,10 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '16'
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache
- run: |
npm install
npm run recent

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
node_modules/
out/
tmp/
data/wiki-meta-cache.yaml

View file

@ -1 +0,0 @@
lastCheckedRecentChanges: '2022-10-10T02:04:05.000Z'

View file

@ -168,7 +168,7 @@ export class WikiGameCacheFile extends YamlFile<WikiGameCache> {
export class WikiMetaCacheFile extends YamlFile<WikiMetaCache> {
path = `${REPO}/data/wiki-meta-cache.yaml`;
defaultData = {
lastCheckedRecentChanges: moment().subtract(7, "days").toISOString(),
lastCheckedRecentChanges: moment().subtract(1, "days").toISOString(),
};
}