File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 88 id : dotnet
99 shell : bash
1010 run : |
11- VERSIONS=$(gh api repos/${{ github.repository }}/properties/values | jq -r '.[] | select(.property_name == "DOTNET") | .value')
11+ # Try to read versions from .github/workflows/dotnet.json first
12+ if [ -f .github/workflows/dotnet.json ]; then
13+ VERSIONS=$(jq -r '.[]' .github/workflows/dotnet.json | tr '\n' ',' | sed 's/,$//')
14+ else
15+ VERSIONS=$(gh api repos/${{ github.repository }}/properties/values | jq -r '.[] | select(.property_name == "DOTNET") | .value')
16+ fi
1217 # Remove extra whitespace from VERSIONS
1318 VERSIONS=$(echo "$VERSIONS" | tr -s ' ' | tr -d ' ')
1419 # Convert comma-separated to newline-separated
Original file line number Diff line number Diff line change 1+ [
2+ " 6.x" ,
3+ " 8.x" ,
4+ " 9.x"
5+ ]
You can’t perform that action at this time.
0 commit comments