compact workflows

This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-10-03 23:03:09 +02:00
parent 667f30de2e
commit 7583c61bb6
4 changed files with 15 additions and 22 deletions

View file

@ -1,15 +0,0 @@
name: "Update wiki"
on: [push]
jobs:
restart:
if: "contains(github.event.head_commit.message, '[restart]')"
name: "Restart server"
runs-on: ubuntu-latest
steps:
- name: Restart the server
uses: https://git.incest.world/actions/ssh-action@master
with:
host: ${{ vars.SSH_SERVER }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: ${{ vars.RESTART_COMMAND }}

View file

@ -1,4 +1,3 @@
name: "Update wiki"
on: [push]
jobs:
update:
@ -43,3 +42,16 @@ jobs:
git config --global user.email 'modupdater@incest.world'
git commit -am "Automated wiki update"
git push
restart:
if: "contains(github.event.head_commit.message, '[restart]')"
name: "Restart server"
runs-on: ubuntu-latest
steps:
- name: Restart the server
uses: https://git.incest.world/actions/ssh-action@master
with:
host: ${{ vars.SSH_SERVER }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: ${{ vars.RESTART_COMMAND }}

View file

@ -4,13 +4,9 @@ hash-format = "sha256"
file = ".forgejo/scripts/update-wiki.py"
hash = "96033d007f13f5c4c4a6e38f796ded00d9523bf54c621dc621f967c627f554b1"
[[files]]
file = ".forgejo/workflows/restart-server.yaml"
hash = "95c43838ab28dcbbea297a358aceb33912fa46cb5ef897a29c66cea7348f4410"
[[files]]
file = ".forgejo/workflows/update-wiki.yaml"
hash = "6e990f44dddb30ea7d077fff7198c09c1f75920c6ff17ac0fed5604ed1829753"
hash = "99e3872759c15a0bf55f9469c2a3a881b84b1550b311f744ebdf46f14042275f"
[[files]]
file = "mods/alternate-current.pw.toml"

View file

@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "bd5c02f0fd6b0619f8423751e8ac7f8da26cca0e7bf7c12a0fceb0376007dec2"
hash = "72b9f3a6937dbf06e8cf193e1a26a1540a2d8b3ab20ff5619dfa247402a2289b"
[versions]
fabric = "0.16.5"