|
|
@ -14,7 +14,7 @@ jobs: |
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
|
|
|
- name: Generate matrix with generate-matrix.sh |
|
|
|
run: chmod +x .github/workflows/generate-matrix.sh; .github/workflows/generate-matrix.sh |
|
|
|
run: chmod +x .github/workflows/detals-check-generate-matrix.sh; .github/workflows/detals-check-generate-matrix.sh |
|
|
|
|
|
|
|
- id: set-matrix |
|
|
|
run: | |
|
|
@ -40,8 +40,19 @@ jobs: |
|
|
|
- name: Enable developer mode |
|
|
|
run: LGSM_GITHUBBRANCH="feature/info_game-refactor" ./${{ matrix.shortname }}server developer |
|
|
|
|
|
|
|
- id: sets-a-secret |
|
|
|
name: Generate, mask, and output a secret |
|
|
|
run: | |
|
|
|
the_secret=$(sed -n "/^\<servercfgdefault\>/ { s/.*= *\"\?\([^\"']*\)\"\?/\1/p;q }" lgsm/config-lgsm/${{ matrix.shortname }}server/_default.cfg) |
|
|
|
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT" |
|
|
|
|
|
|
|
- name: Download config |
|
|
|
run: curl -o config https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/rename/${{ matrix.shortname }}/${servercfgdefault} |
|
|
|
run: | |
|
|
|
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}" |
|
|
|
curl -o config "https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/rename/${{ matrix.shortname }}/${{ steps.sets-a-secret.outputs.secret-number }}" |
|
|
|
|
|
|
|
- name: Display config |
|
|
|
run: cat config |
|
|
|
|
|
|
|
- name: Check details |
|
|
|
run: LGSM_GITHUBBRANCH="feature/info_game-refactor" ./${{ matrix.shortname }}server detect-details |
|
|
|