Include current dotnet release

This commit is contained in:
aptalca
2020-12-13 13:58:47 -05:00
parent 39e01aa2ca
commit 1c2f808646
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
run: |
# Set version
DOTNET_JSON="$(curl --retry 5 -sX GET https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json)"
DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="lts") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
DOTNET_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')"
echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV
# Build image