From 0c610c785b82610a527898d4ffc57acb32f95190 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 30 Aug 2023 23:49:51 +0100 Subject: [PATCH] refactor: update steamuser and steampass insertion in LGSM configuration The code changes refactor the way steamuser and steampass are inserted into the LGSM configuration file. Instead of hardcoding the values, they are now dynamically inserted using environment variables. This improves flexibility and security when setting up the server. --- .github/workflows/update-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-check.yml b/.github/workflows/update-check.yml index ae6e5b50e..bccfc81ff 100644 --- a/.github/workflows/update-check.yml +++ b/.github/workflows/update-check.yml @@ -33,11 +33,11 @@ jobs: - name: Insert steamuser if: matrix.shortname == 'jk2' - run: sed -i 's/steamuser=""/steamuser="${STEAMCMD_USER}"/g' lgsm/config-lgsm/jk2server/common.cfg + run: sed -i 's/steamuser=""/steamuser="${STEAMCMD_USER}"/g' lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg - name: Insert steampass if: matrix.shortname == 'jk2' - run: sed -i 's/steampass=""/steampass='${STEAMCMD_PASS}' lgsm/config-lgsm/jk2server/common.cfg + run: sed -i 's/steampass=""/steampass='${STEAMCMD_PASS}'/g' lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg - name: Install server run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server auto-install