Skip to content

Commit

Permalink
output updated global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Mar 19, 2024
1 parent 6d82c39 commit 373fe39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/dotnet-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 373fe39

Please sign in to comment.