posspack/.forgejo/workflows/update-wiki.yaml
Ashley Graves 36a46826d8
Some checks failed
Update wiki / test (push) Failing after 12s
test
2024-07-27 14:40:49 +02:00

30 lines
752 B
YAML

on: [push]
name: "Update wiki"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Clone modpack"
uses: actions/checkout@v3
with:
repository: "root/posspack"
path: "pack"
- name: "Clone wiki"
uses: actions/checkout@v3
with:
repository: "root/posspack.wiki"
path: "wiki"
ref: "main"
- name: "Update modlist"
run: python pack/.forgejo/scripts/update-wiki.py
- name: "Commit changes"
run: |
cd wiki
git add .
git config --global user.name 'PossPack Wiki Updater'
git config --global user.email 'root@possum.city'
git commit -am "Automated wiki update"
git push