Skip to content

Commit d3255e0

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Fix improper first / in gh api repos devlooped/oss@f2b690c - Move dotnet setup to composite action devlooped/oss@08c7077 - Group Spectre.Console updates devlooped/oss@917ff54 - Ensure lf for Scriban templates always devlooped/oss@4a9aa32
1 parent 0be592e commit d3255e0

File tree

7 files changed

+57
-22
lines changed

7 files changed

+57
-22
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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

.github/actions/dotnet/action.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ updates:
3838
ProtoBuf:
3939
patterns:
4040
- "protobuf-*"
41+
Spectre:
42+
patterns:
43+
- "Spectre.Console*"

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ jobs:
6666
fetch-depth: 0
6767

6868
- name: ⚙ dotnet
69-
uses: actions/setup-dotnet@v4
70-
with:
71-
dotnet-version: |
72-
6.x
73-
8.x
74-
9.x
69+
uses: ./.github/actions/dotnet
7570

7671
- name: 🙏 build
7772
run: dotnet build -m:1 -bl:build.binlog

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
VersionLabel: ${{ github.ref }}
1616
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1717
MSBUILDTERMINALLOGGER: auto
18-
SLEET_FEED_URL: ${{ vars.SLEET_FEED_URL }}
18+
SLEET_FEED_URL: https://api.nuget.org/v3/index.json
1919

2020
jobs:
2121
publish:
@@ -28,12 +28,7 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: ⚙ dotnet
31-
uses: actions/setup-dotnet@v4
32-
with:
33-
dotnet-version: |
34-
6.x
35-
8.x
36-
9.x
31+
uses: ./.github/actions/dotnet
3732

3833
- name: 🙏 build
3934
run: dotnet build -m:1 -bl:build.binlog

.netconfig

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@
3737
weak
3838
[file ".gitattributes"]
3939
url = https://github.com/devlooped/oss/blob/main/.gitattributes
40-
sha = 5f92a68e302bae675b394ef343114139c075993e
41-
etag = 338ba6d92c8d1774363396739c2be4257bfc58026f4b0fe92cb0ae4460e1eff7
40+
sha = 4a9aa321c4982b83c185cf8dffed181ff84667d5
41+
etag = 09cad18280ed04b67f7f87591e5481510df04d44c3403231b8af885664d8fd58
4242
weak
4343
[file ".github/dependabot.yml"]
4444
url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
45-
sha = 49661dbf0720cde93eb5569be7523b5912351560
46-
etag = c147ea2f3431ca0338c315c4a45b56ee233c4d30f8d6ab698d0e1980a257fd6a
45+
sha = 917ff5486e25bec90038e7ab6d146fd82c61f846
46+
etag = 50bf50df5a6eeb1705baea50f4c6e06d167a89cb5a590887ff939bd4120bd442
4747
weak
4848
[file ".github/workflows/build.yml"]
4949
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
50-
sha = 931da830a361d69b419887a0edbb424517ca75fc
51-
etag = ea785d08ab67abc57629649b0a418a515dc58248de12668f3616908873f8ecc6
50+
sha = 08c70776943839f73dbea2e65355108747468508
51+
etag = fb2e91cdc9fb7a4d3e8f698e525816c5d8febb35b005c278eecca8056e78f809
5252
weak
5353
[file ".github/workflows/changelog.yml"]
5454
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.yml
@@ -62,8 +62,8 @@
6262
weak
6363
[file ".github/workflows/publish.yml"]
6464
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
65-
sha = 931da830a361d69b419887a0edbb424517ca75fc
66-
etag = 62a13b8b34b1b265cdc045bf7ea001dee7bdc184cba7abfea5fe77283cf419a6
65+
sha = 08c70776943839f73dbea2e65355108747468508
66+
etag = 722a2c7cb3a42bc24ca7fb48d2e9a336641ed0599418239e24efbafccf64bd50
6767
weak
6868
[file ".gitignore"]
6969
url = https://github.com/devlooped/oss/blob/main/.gitignore
@@ -130,3 +130,8 @@
130130
sha = 032439dbf180fca0539a5bd3a019f18ab3484b76
131131
etag = da7c0104131bd474b52fc9bc9f9bda6470e24ae38d4fb9f5c4f719bc01370ab5
132132
weak
133+
[file ".github/actions/dotnet/action.yml"]
134+
url = https://github.com/devlooped/oss/blob/main/.github/actions/dotnet/action.yml
135+
sha = f2b690ce307acb76c5b8d7faec1a5b971a93653e
136+
etag = 27ea11baa2397b3ec9e643a935832da97719c4e44215cfd135c49cad4c29373f
137+
weak

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ The versioning scheme for packages is:
134134
[![Jacob Foshee](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png "Jacob Foshee")](https://github.com/jfoshee)
135135
[![](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png "")](https://github.com/Mrxx99)
136136
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson")](https://github.com/eajhnsn1)
137-
[![Ix Technologies B.V.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png "Ix Technologies B.V.")](https://github.com/IxTechnologies)
138137
[![David JENNI](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png "David JENNI")](https://github.com/davidjenni)
139138
[![Jonathan ](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png "Jonathan ")](https://github.com/Jonathan-Hickey)
140139
[![Charley Wu](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/akunzai.png "Charley Wu")](https://github.com/akunzai)
@@ -149,6 +148,8 @@ The versioning scheme for packages is:
149148
[![Vincent Limo](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/v-limo.png "Vincent Limo")](https://github.com/v-limo)
150149
[![Jordan S. Jones](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jordansjones.png "Jordan S. Jones")](https://github.com/jordansjones)
151150
[![domischell](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/DominicSchell.png "domischell")](https://github.com/DominicSchell)
151+
[![Mauricio Scheffer](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/mausch.png "Mauricio Scheffer")](https://github.com/mausch)
152+
[![Justin Wendlandt](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jwendl.png "Justin Wendlandt")](https://github.com/jwendl)
152153

153154

154155
<!-- sponsors.md -->

0 commit comments

Comments
 (0)