parent
c81e9f97a1
commit
36a46826d8
2 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,12 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import tomllib
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
||||||
#print(os.environ["GITHUB_TOKEN"])
|
#print(os.environ["GITHUB_TOKEN"])
|
||||||
for mod in glob.glob("pack/mods/*.toml"):
|
for mod in glob.glob("pack/mods/*.toml"):
|
||||||
|
with open(mod, "rb") as f:
|
||||||
|
data = tomllib.load(f)
|
||||||
print(mod)
|
print(mod)
|
||||||
|
print(data)
|
||||||
|
|
|
@ -23,6 +23,7 @@ jobs:
|
||||||
- name: "Commit changes"
|
- name: "Commit changes"
|
||||||
run: |
|
run: |
|
||||||
cd wiki
|
cd wiki
|
||||||
|
git add .
|
||||||
git config --global user.name 'PossPack Wiki Updater'
|
git config --global user.name 'PossPack Wiki Updater'
|
||||||
git config --global user.email 'root@possum.city'
|
git config --global user.email 'root@possum.city'
|
||||||
git commit -am "Automated wiki update"
|
git commit -am "Automated wiki update"
|
||||||
|
|
Loading…
Reference in a new issue