parent
dd2d3e3f4f
commit
6b18659c2f
2 changed files with 5 additions and 5 deletions
|
@ -14,8 +14,8 @@ count["both"] = 0
|
||||||
|
|
||||||
cache = dict()
|
cache = dict()
|
||||||
|
|
||||||
if os.path.isfile("licenses.json"):
|
if os.path.isfile("cache/licenses.json"):
|
||||||
with open("licenses.json", "r") as f:
|
with open("cache/licenses.json", "r") as f:
|
||||||
cache = json.load(f)
|
cache = json.load(f)
|
||||||
|
|
||||||
for mod in glob.glob("pack/mods/*.toml"):
|
for mod in glob.glob("pack/mods/*.toml"):
|
||||||
|
@ -111,5 +111,5 @@ with open("wiki/Licenses.md", "w") as f:
|
||||||
f.write("Unknown")
|
f.write("Unknown")
|
||||||
f.write("</b>\r\n")
|
f.write("</b>\r\n")
|
||||||
|
|
||||||
with open("licenses.json", "w") as f:
|
with open("cache/licenses.json", "w") as f:
|
||||||
json.dump(cache, f)
|
json.dump(cache, f)
|
||||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
id: cache-licenses-restore
|
id: cache-licenses-restore
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: licenses.json
|
path: cache
|
||||||
key: licenses
|
key: licenses
|
||||||
|
|
||||||
- name: "Update modlist"
|
- name: "Update modlist"
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
id: cache-licenses-save
|
id: cache-licenses-save
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: licenses.json
|
path: cache
|
||||||
key: ${{ steps.cache-licenses-restore.outputs.cache-primary-key }}
|
key: ${{ steps.cache-licenses-restore.outputs.cache-primary-key }}
|
||||||
|
|
||||||
- name: "Commit changes"
|
- name: "Commit changes"
|
||||||
|
|
Loading…
Reference in a new issue