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