From 373fe390b88cebd4c0a1b743a3a6688097a83b42 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Tue, 19 Mar 2024 14:54:56 +0000 Subject: [PATCH] output updated global.json --- .github/workflows/dotnet-version.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-version.yml b/.github/workflows/dotnet-version.yml index a90d4a38..5f05d3e0 100644 --- a/.github/workflows/dotnet-version.yml +++ b/.github/workflows/dotnet-version.yml @@ -57,6 +57,7 @@ jobs: echo "Should update to ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}}" mv "src/global.json" "src/global.json.tmp"; jq --arg v "$NEW_DOTNET_VERSION" '.version = $v' < "src/global.json.tmp" > "src/global.json"; - [ if "src/global.json.tmp" ] && rm -f "src/global.json.tmp" + [ -f "src/global.json.tmp" ] && rm -f "src/global.json.tmp" + cat "src/global.json" env: NEW_DOTNET_VERSION: ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}}