From b304e3c800f7aaeb716e60d5f11fafc63ae16ec3 Mon Sep 17 00:00:00 2001 From: Mike Miller <87874+mikeage@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:04:27 +0300 Subject: [PATCH] gzip config.vdf before storing as a secret (#49) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c867f9e1..0ccad022 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -581,7 +581,7 @@ jobs: - name: Restore steam login config run: | mkdir -p /home/runner/Steam/config - echo "${{ secrets.STEAM_CONFIG_VDF}}" | base64 -d - > /home/runner/Steam/config/config.vdf + echo "${{ secrets.STEAM_CONFIG_VDF}}" | base64 -d - | gunzip - > /home/runner/Steam/config/config.vdf md5sum /home/runner/Steam/config/config.vdf - name: Download Build Artifacts (Windows) uses: actions/download-artifact@v4 @@ -605,7 +605,7 @@ jobs: CHANNEL: beta - name: Update steam login secret run: | - base64 -i /home/runner/Steam/config/config.vdf | gh secret set --visibility all --org icosa-foundation STEAM_CONFIG_VDF + gzip /home/runner/Steam/config/config.vdf -c | base64 | gh secret set --visibility all --org icosa-foundation STEAM_CONFIG_VDF md5sum /home/runner/Steam/config/config.vdf env: GITHUB_TOKEN: ${{ secrets.SECRET_UPDATER_PAT }}