diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index a0d328b356..3638cff12c 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -368,6 +368,10 @@ jobs: id: wix-tool run: echo "version=$(cat build/package/winget/.config/dotnet-tools.json | jq -r '.tools.wix.version')" >> $GITHUB_OUTPUT + - name: Retrieve StrawberryShake Tool Version + id: strawberry-tool + run: echo "version=$(cat build/Tgstation.Server.Host.Utils.GitLab.GraphQL/.config/dotnet-tools.json | jq -r '.tools.strawberryshake\.tools.version')" >> $GITHUB_OUTPUT + - name: Retrieve dotnet-ef Nuget Version id: dotnet-ef-nuget run: | @@ -390,6 +394,17 @@ jobs: exit 1 fi + - name: Retrieve StrawberryShake Nuget Version + id: strawberry-nuget + run: | + regex='\s+' + if [[ $(cat src/Tgstation.Server.Host.Utils.GitLab.GraphQL/Tgstation.Server.Host.Utils.GitLab.GraphQL.csproj) =~ $regex ]]; then + echo "version=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT + else + echo "Regex search failed!" + exit 1 + fi + - name: Fail if dotnet-ef Versions Don't Match if: ${{ steps.dotnet-ef-tool.outputs.version != steps.dotnet-ef-nuget.outputs.version }} run: | @@ -402,6 +417,12 @@ jobs: echo "${{ steps.wix-tool.outputs.version }} != ${{ steps.wix-nuget.outputs.version }}" exit 1 + - name: Fail if StrawberryShake Versions Don't Match + if: ${{ steps.strawberry-tool.outputs.version != steps.strawberry-nuget.outputs.version }} + run: | + echo "${{ steps.strawberry-tool.outputs.version }} != ${{ steps.strawberry-nuget.outputs.version }}" + exit 1 + pages-build: name: Build gh-pages needs: build-releasenotes