File tree Expand file tree Collapse file tree 4 files changed +45
-5
lines changed
Expand file tree Collapse file tree 4 files changed +45
-5
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 3636 weak
3737[file ".github/dependabot.yml"]
3838 url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
39- sha = 49661dbf0720cde93eb5569be7523b5912351560
40- etag = c147ea2f3431ca0338c315c4a45b56ee233c4d30f8d6ab698d0e1980a257fd6a
39+ sha = 917ff5486e25bec90038e7ab6d146fd82c61f846
40+ etag = 50bf50df5a6eeb1705baea50f4c6e06d167a89cb5a590887ff939bd4120bd442
4141 weak
4242[file ".github/workflows/build.yml"]
4343 url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
126126 sha = 032439dbf180fca0539a5bd3a019f18ab3484b76
127127 etag = da7c0104131bd474b52fc9bc9f9bda6470e24ae38d4fb9f5c4f719bc01370ab5
128128 weak
129+ [file ".github/actions/dotnet/action.yml"]
130+ url = https://github.com/devlooped/oss/blob/main/.github/actions/dotnet/action.yml
131+ sha = f2b690ce307acb76c5b8d7faec1a5b971a93653e
132+ etag = 27ea11baa2397b3ec9e643a935832da97719c4e44215cfd135c49cad4c29373f
133+ weak
Original file line number Diff line number Diff line change @@ -174,8 +174,6 @@ See [Program.cs](src/Sample/Program.cs) for a complete example.
174174[ ![ David JENNI] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png " David JENNI ")] ( https://github.com/davidjenni )
175175[ ![ Jonathan ] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png " Jonathan ")] ( https://github.com/Jonathan-Hickey )
176176[ ![ Charley Wu] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/akunzai.png " Charley Wu ")] ( https://github.com/akunzai )
177- [ ![ Jakob Tikjøb Andersen] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jakobt.png " Jakob Tikjøb Andersen ")] ( https://github.com/jakobt )
178- [ ![ Tino Hager] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png " Tino Hager ")] ( https://github.com/tinohager )
179177[ ![ Ken Bonny] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png " Ken Bonny ")] ( https://github.com/KenBonny )
180178[ ![ Simon Cropp] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png " Simon Cropp ")] ( https://github.com/SimonCropp )
181179[ ![ agileworks-eu] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png " agileworks-eu ")] ( https://github.com/agileworks-eu )
@@ -187,7 +185,6 @@ See [Program.cs](src/Sample/Program.cs) for a complete example.
187185[ ![ Vincent Limo] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/v-limo.png " Vincent Limo ")] ( https://github.com/v-limo )
188186[ ![ Jordan S. Jones] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jordansjones.png " Jordan S. Jones ")] ( https://github.com/jordansjones )
189187[ ![ domischell] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/DominicSchell.png " domischell ")] ( https://github.com/DominicSchell )
190- [ ![ Joseph Kingry] ( https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jkingry.png " Joseph Kingry ")] ( https://github.com/jkingry )
191188
192189
193190<!-- sponsors.md -->
You can’t perform that action at this time.
0 commit comments