28 lines
727 B
YAML
28 lines
727 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 .forgejo/scripts/update-wiki.py
|
|
|
|
- name: "Commit changes"
|
|
run: |
|
|
git config --global user.name 'PossPack Wiki Updater'
|
|
git config --global user.email 'your-username@users.noreply.github.com'
|
|
git commit -am "Automated report"
|
|
git push
|