mirror of
https://github.com/kaboomserver/server.git
synced 2024-12-22 07:35:08 +00:00
Automatically update server and plugins every day
This commit is contained in:
parent
2970c0dd65
commit
e3438a8d59
2 changed files with 37 additions and 0 deletions
36
.github/workflows/main.yml
vendored
Normal file
36
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Server Updater
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 12 * * *"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update:
|
||||
if: github.repository == 'kaboomserver/server'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Fetch server jar
|
||||
run: scripts/fetch_server.sh
|
||||
|
||||
- name: Fetch internal plugins
|
||||
run: scripts/fetch_internal_plugins.sh
|
||||
|
||||
- name: Fetch external plugins
|
||||
run: scripts/fetch_external_plugins.sh
|
||||
|
||||
- name: Update server and plugins
|
||||
run: |
|
||||
cp fetched_server/server.jar .
|
||||
cp fetched_plugins/*.jar plugins/
|
||||
|
||||
- name: Push changes
|
||||
run: |
|
||||
git config --global user.name 'kaboombot'
|
||||
git config --global user.email '58372747+kaboombot@users.noreply.github.com'
|
||||
git commit -am "Update server and plugins"
|
||||
git push
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
fetched_*/
|
||||
scripts/fetched_*/
|
||||
|
|
Loading…
Reference in a new issue