File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1717 run : |
1818 # Set version
1919 DOTNET_JSON="$(curl --retry 5 -sX GET https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json)"
20- DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="lts " or ."support-phase"=="current ") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
20+ DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="active " or ."support-phase"=="maintenance ") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
2121 DOTNET_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')"
2222 echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV
2323 # Build image
Original file line number Diff line number Diff line change 88 jq && \
99 DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json" ) && \
1010 if [ -z ${DOTNET_VERSIONS+x} ]; then \
11- DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="lts " or ."support-phase"=="current ") | ."latest-sdk"' | tr '\n ' ' ' | head -c -1); \
11+ DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="active " or ."support-phase"=="maintenance ") | ."latest-sdk"' | tr '\n ' ' ' | head -c -1); \
1212 fi && \
1313 mkdir -p /root-layer/dotnet && \
1414 echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \
You can’t perform that action at this time.
0 commit comments