posspack/.forgejo/workflows/update-wiki.yaml

30 lines
733 B
YAML
Raw Normal View History

2024-07-27 14:18:02 +02:00
on: [push]
2024-07-27 14:37:29 +02:00
name: "Update wiki"
2024-07-27 14:18:02 +02:00
jobs:
test:
2024-07-27 14:23:23 +02:00
runs-on: ubuntu-latest
2024-07-27 14:18:02 +02:00
steps:
2024-07-27 14:36:28 +02:00
- name: "Clone modpack"
2024-07-27 14:34:31 +02:00
uses: actions/checkout@v3
2024-07-27 14:31:45 +02:00
with:
2024-07-27 14:34:31 +02:00
repository: "root/posspack"
2024-07-27 14:31:45 +02:00
path: "pack"
2024-07-27 14:36:28 +02:00
- name: "Clone wiki"
2024-07-27 14:34:31 +02:00
uses: actions/checkout@v3
2024-07-27 14:31:45 +02:00
with:
2024-07-27 14:34:31 +02:00
repository: "root/posspack.wiki"
2024-07-27 14:31:45 +02:00
path: ".wiki"
2024-07-27 14:36:54 +02:00
ref: "main"
2024-07-27 14:31:45 +02:00
2024-07-27 14:36:28 +02:00
- name: "Update modlist"
2024-07-27 14:37:48 +02:00
run: python pack/.forgejo/scripts/update-wiki.py
2024-07-27 14:34:31 +02:00
2024-07-27 14:36:28 +02:00
- name: "Commit changes"
2024-07-27 14:34:31 +02:00
run: |
2024-07-27 14:38:52 +02:00
cd wiki
2024-07-27 14:36:28 +02:00
git config --global user.name 'PossPack Wiki Updater'
2024-07-27 14:38:52 +02:00
git config --global user.email 'root@possum.city'
git commit -am "Automated wiki update"
2024-07-27 14:34:31 +02:00
git push