15 changed files with 93 additions and 43 deletions
@ -0,0 +1,48 @@ |
|||||
|
name: Update Check |
||||
|
# This action will check that LinuxGSM is picking up game server config and parameter variables. |
||||
|
on: |
||||
|
workflow_dispatch: |
||||
|
push: |
||||
|
|
||||
|
concurrency: |
||||
|
group: update-check-${{ github.ref_name }} |
||||
|
cancel-in-progress: true |
||||
|
|
||||
|
jobs: |
||||
|
update-check: |
||||
|
continue-on-error: true |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
strategy: |
||||
|
matrix: |
||||
|
shortname: [css, fctr, jk2, mc, mcb, mta, pmc, ts3, ut99, vints] |
||||
|
|
||||
|
steps: |
||||
|
- name: Download linuxgsm.sh |
||||
|
run: wget https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${GITHUB_REF#refs/heads/}/linuxgsm.sh; chmod +x linuxgsm.sh |
||||
|
|
||||
|
- name: Install dependencies |
||||
|
run: sudo dpkg --add-architecture i386; sudo apt-get update; |
||||
|
|
||||
|
- name: Grab server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./linuxgsm.sh ${{ matrix.shortname }}server |
||||
|
|
||||
|
- name: Enable developer mode |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server developer |
||||
|
|
||||
|
- name: Insert steamuser |
||||
|
if: matrix.shortname == 'jk2' |
||||
|
run: echo -e "steamuser=\"${{ secrets.STEAMCMD_USER }}\"\nsteampass='${{ secrets.STEAMCMD_PASS }}'" > lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg |
||||
|
|
||||
|
- name: Install server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server auto-install |
||||
|
|
||||
|
- name: Check Update server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server check-update |
||||
|
|
||||
|
- name: Update server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server update |
||||
|
|
||||
|
- name: Force Update server |
||||
|
if: matrix.shortname == 'css' |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server force-update |
@ -1,5 +1,5 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM update_factorio.sh module |
# LinuxGSM update_fctr.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
@ -1,5 +1,5 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM update_minecraft.sh module |
# LinuxGSM update_mc.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
@ -1,5 +1,5 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM update_minecraft_bedrock.sh module |
# LinuxGSM update_mcb.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
@ -1,5 +1,5 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM update_papermc.sh module |
# LinuxGSM update_pmc.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
@ -1,5 +1,5 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM update_vintagestory.sh module |
# LinuxGSM update_vints.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
Loading…
Reference in new issue