File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed
Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 11# normalize by default
22* text =auto encoding =UTF-8
33* .sh text eol =lf
4+ * .sbn eol =lf
45
56# These are windows specific files which we may as well ensure are
67# always crlf on checkout
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')
12- echo "versions=$VERSIONS" >> $GITHUB_OUTPUT
11+ VERSIONS=$(gh api repos/${{ github.repository }}/properties/values | jq -r '.[] | select(.property_name == "DOTNET") | .value')
12+ # Remove extra whitespace from VERSIONS
13+ VERSIONS=$(echo "$VERSIONS" | tr -s ' ' | tr -d ' ')
14+ # Convert comma-separated to newline-separated
15+ NEWLINE_VERSIONS=$(echo "$VERSIONS" | tr ',' '\n')
16+ # Validate versions
17+ while IFS= read -r version; do
18+ if ! [[ $version =~ ^[0-9]+(\.[0-9]+(\.[0-9]+)?)?(\.x)?$ ]]; then
19+ echo "Error: Invalid version format: $version"
20+ exit 1
21+ fi
22+ done <<< "$NEWLINE_VERSIONS"
23+ # Write multiline output to $GITHUB_OUTPUT
24+ {
25+ echo 'versions<<EOF'
26+ echo "$NEWLINE_VERSIONS"
27+ echo 'EOF'
28+ } >> $GITHUB_OUTPUT
1329
1430 - name : ⚙ dotnet
1531 if : steps.dotnet.outputs.versions != ''
1632 uses : actions/setup-dotnet@v4
1733 with :
18- dotnet-version : ${{ steps.dotnet.outputs.versions }}
34+ dotnet-version : |
35+ ${{ steps.dotnet.outputs.versions }}
Original file line number Diff line number Diff line change 2323 weak
2424[file ".gitattributes"]
2525 url = https://github.com/devlooped/oss/blob/main/.gitattributes
26- sha = 5f92a68e302bae675b394ef343114139c075993e
26+ sha = 4a9aa321c4982b83c185cf8dffed181ff84667d5
2727
28- etag = 338ba6d92c8d1774363396739c2be4257bfc58026f4b0fe92cb0ae4460e1eff7
28+ etag = 09cad18280ed04b67f7f87591e5481510df04d44c3403231b8af885664d8fd58
2929 weak
3030[file ".github/actions/dotnet/action.yml"]
3131 url = https://github.com/devlooped/oss/blob/main/.github/actions/dotnet/action.yml
32- sha = 08c70776943839f73dbea2e65355108747468508
32+ sha = f2b690ce307acb76c5b8d7faec1a5b971a93653e
3333
34- etag = a5f1fa7f652cc2c2e13b7c236e5f8403aea26667d6a040c84ef976af267af6ab
34+ etag = 27ea11baa2397b3ec9e643a935832da97719c4e44215cfd135c49cad4c29373f
3535 weak
3636[file ".github/dependabot.yml"]
3737 url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
You can’t perform that action at this time.
0 commit comments