From eaeb2487a11ee2842e8727e6507fb602297771a7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 10 Jun 2023 23:42:46 +0100 Subject: [PATCH] feat: Add update and force-update server functionality This commit adds the ability to check for updates and force updates on a server. The update-check.yml file has been modified to include new jobs that run the LGSM_GITHUBBRANCH command with specific arguments. --- .github/workflows/update-check.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/update-check.yml b/.github/workflows/update-check.yml index b4b9a907d..901dc8b5a 100644 --- a/.github/workflows/update-check.yml +++ b/.github/workflows/update-check.yml @@ -34,5 +34,12 @@ jobs: - 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