From cd6619b7d894bde2d7cf5ec595293e29daa60834 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 26 Jul 2025 11:15:06 -0400 Subject: [PATCH] Should get things where we need them --- .github/workflows/ci-pipeline.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index cd6ce47071..7f342a125b 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -97,6 +97,8 @@ jobs: name: Validate Nix Flake needs: start-gate runs-on: ubuntu-latest + env: + TEST_TGS_VERSION: "6.17.0" # Version we use here doesn't matter as it won't be executed. Just used to download a zip and calc hash steps: - name: Setup Nix uses: cachix/install-nix-action@v31 @@ -113,6 +115,24 @@ jobs: with: ref: "refs/pull/${{ inputs.pull_request_number }}/merge" + - name: Replace current TGS version with test version + run: + CURRENT_TGS_VERSION="$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" + sed -i -e "s/${CURRENT_TGS_VERSION}/${{ env.TEST_TGS_VERSION }}" build/Version.props + + - name: Retrieve ServerConsole.zip Artifact + run: | + mkdir release + curl -L https://github.com/tgstation/tgstation-server/releases/download/tgstation-server-v${{ env.TEST_TGS_VERSION }}/ServerConsole.zip -f -o release/ServerConsole.zip + + - name: Regenerate Nix Hash + run: | + nix hash path ./release > build/package/nix/ServerConsole.sha256 + cat build/package/nix/ServerConsole.sha256 + + - name: Cleanup Download + run: rm -rf ./release + - name: Check Flake run: | cd build/package/nix