File tree Expand file tree Collapse file tree 3 files changed +45
-2
lines changed Expand file tree Collapse file tree 3 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1+ name : ⚙ dotnet
2+ description : Configures dotnet if the repo/org defines the DOTNET custom property
3+
4+ runs :
5+ using : composite
6+ steps :
7+ - name : 🔎 dotnet
8+ id : dotnet
9+ shell : bash
10+ run : |
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
29+
30+ - name : ⚙ dotnet
31+ if : steps.dotnet.outputs.versions != ''
32+ uses : actions/setup-dotnet@v4
33+ with :
34+ dotnet-version : |
35+ ${{ steps.dotnet.outputs.versions }}
Original file line number Diff line number Diff line change @@ -38,3 +38,6 @@ updates:
3838 ProtoBuf :
3939 patterns :
4040 - " protobuf-*"
41+ Spectre :
42+ patterns :
43+ - " Spectre.Console*"
Original file line number Diff line number Diff line change 2424 weak
2525[file ".github/dependabot.yml"]
2626 url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
27- sha = 49661dbf0720cde93eb5569be7523b5912351560
28- etag = c147ea2f3431ca0338c315c4a45b56ee233c4d30f8d6ab698d0e1980a257fd6a
27+ sha = 917ff5486e25bec90038e7ab6d146fd82c61f846
28+ etag = 50bf50df5a6eeb1705baea50f4c6e06d167a89cb5a590887ff939bd4120bd442
2929 weak
3030[file ".github/release.yml"]
3131 url = https://github.com/devlooped/oss/blob/main/.github/release.yml
9999
100100 etag = 0a3acaa0f014bc8f5c31762e44e45fccf25f9ed9c690b9a1f92924522135b370
101101 weak
102+ [file ".github/actions/dotnet/action.yml"]
103+ url = https://github.com/devlooped/oss/blob/main/.github/actions/dotnet/action.yml
104+ sha = f2b690ce307acb76c5b8d7faec1a5b971a93653e
105+ etag = 27ea11baa2397b3ec9e643a935832da97719c4e44215cfd135c49cad4c29373f
106+ weak
You can’t perform that action at this time.
0 commit comments