Skip to content

Commit 35895ba

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Update to checkout@v4 devlooped/oss@5fb1723 - Group MEAI packages together devlooped/oss@e733294 - Ensure lf for Scriban templates always devlooped/oss@4a9aa32 - Switch to dotnet-env for .NET SDK setup devlooped/oss@56c2b85 - Add Company MSBuild property by default devlooped/oss@c509be4 - Add explicit write permissions from caller workflow devlooped/oss@8fa147d - Ignore .env files recursively devlooped/oss@3776526 - If we provide a docs category, don't exclude docs :) devlooped/oss@0c23e24 - Improve default Product metadata, remove .git from user-facing URLs devlooped/oss@4339749 - Attempt to get necessary permissions for default token devlooped/oss@85829f2 - Skip discussion issues when generating changelog devlooped/oss@08d83cb - Remove -l:trx since it's just for dotnet test, not build devlooped/oss@0f7f7f7 - Ignore slnx file format too devlooped/oss@68b409c
1 parent 7e21e4f commit 35895ba

18 files changed

+193
-182
lines changed

.gitattributes

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
# sln, csproj files (and friends) are always CRLF, even on linux
2-
*.sln text eol=crlf
3-
*.proj text eol=crlf
4-
*.csproj text eol=crlf
1+
# normalize by default
2+
* text=auto encoding=UTF-8
3+
*.sh text eol=lf
4+
*.sbn eol=lf
55

66
# These are windows specific files which we may as well ensure are
77
# always crlf on checkout
88
*.bat text eol=crlf
99
*.cmd text eol=crlf
10-
11-
# Opt in known filetypes to always normalize line endings on checkin
12-
# and always use native endings on checkout
13-
*.c text
14-
*.config text
15-
*.h text
16-
*.cs text
17-
*.md text
18-
*.tt text
19-
*.txt text
20-
21-
# Some must always be checked out as lf so enforce that for those files
22-
# If these are not lf then bash/cygwin on windows will not be able to
23-
# excute the files
24-
*.sh text eol=lf

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ updates:
2424
Extensions:
2525
patterns:
2626
- "Microsoft.Extensions*"
27+
exclude-patterns:
28+
- "Microsoft.Extensions.AI*"
29+
ExtensionsAI:
30+
patterns:
31+
- "Microsoft.Extensions.AI*"
2732
Web:
2833
patterns:
2934
- "Microsoft.AspNetCore*"
@@ -38,3 +43,6 @@ updates:
3843
ProtoBuf:
3944
patterns:
4045
- "protobuf-*"
46+
Spectre:
47+
patterns:
48+
- "Spectre.Console*"

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ changelog:
88
- invalid
99
- wontfix
1010
- need info
11-
- docs
1211
- techdebt
1312
authors:
1413
- devlooped-bot
@@ -24,6 +23,7 @@ changelog:
2423
- title: 📝 Documentation updates
2524
labels:
2625
- docs
26+
- documentation
2727
- title: 🔨 Other
2828
labels:
2929
- '*'

.github/workflows/build.yml

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,32 @@
44
name: build
55
on:
66
workflow_dispatch:
7+
inputs:
8+
configuration:
9+
type: choice
10+
description: Configuration
11+
options:
12+
- Release
13+
- Debug
714
push:
815
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
916
paths-ignore:
1017
- changelog.md
11-
- code-of-conduct.md
12-
- security.md
13-
- support.md
1418
- readme.md
1519
pull_request:
1620
types: [opened, synchronize, reopened]
1721

1822
env:
1923
DOTNET_NOLOGO: true
20-
VersionPrefix: 42.42.${{ github.run_number }}
21-
VersionLabel: ${{ github.ref }}
2224
PackOnBuild: true
2325
GeneratePackageOnBuild: true
24-
26+
VersionPrefix: 42.42.${{ github.run_number }}
27+
VersionLabel: ${{ github.ref }}
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
31+
SLEET_FEED_URL: ${{ vars.SLEET_FEED_URL }}
32+
2533
defaults:
2634
run:
2735
shell: bash
@@ -33,7 +41,7 @@ jobs:
3341
matrix: ${{ steps.lookup.outputs.matrix }}
3442
steps:
3543
- name: 🤘 checkout
36-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
3745

3846
- name: 🔎 lookup
3947
id: lookup
@@ -52,41 +60,49 @@ jobs:
5260
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5361
steps:
5462
- name: 🤘 checkout
55-
uses: actions/checkout@v2
63+
uses: actions/checkout@v4
5664
with:
5765
submodules: recursive
5866
fetch-depth: 0
5967

68+
- name: ⚙ dotnet
69+
uses: devlooped/actions-dotnet-env@v1
70+
6071
- name: 🙏 build
61-
run: dotnet build -m:1
72+
run: dotnet build -m:1 -bl:build.binlog
6273

63-
- name: ⚙ GNU grep
64-
if: matrix.os == 'macOS-latest'
74+
- name: 🧪 test
6575
run: |
66-
brew install grep
67-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
76+
dotnet tool update -g dotnet-retest
77+
dotnet retest -- --no-build
6878
69-
- name: 🧪 test
70-
uses: ./.github/workflows/test
79+
- name: 🐛 logs
80+
uses: actions/upload-artifact@v4
81+
if: runner.debug && always()
82+
with:
83+
name: logs
84+
path: '*.binlog'
7185

72-
# Only push CI package to sleet feed if building on ubuntu (fastest)
7386
- name: 🚀 sleet
7487
env:
7588
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
7689
if: env.SLEET_CONNECTION != ''
7790
run: |
78-
dotnet tool install -g --version 4.0.18 sleet
91+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
7992
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
8093
8194
dotnet-format:
8295
runs-on: ubuntu-latest
8396
steps:
8497
- name: 🤘 checkout
85-
uses: actions/checkout@v2
98+
uses: actions/checkout@v4
8699
with:
87100
submodules: recursive
88101
fetch-depth: 0
89102

103+
- name: ⚙ dotnet
104+
uses: devlooped/actions-dotnet-env@v1
105+
90106
- name: ✓ ensure format
91107
run: |
92108
dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget

.github/workflows/changelog.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
usernames-as-github-logins=true
22
issues_wo_labels=true
33
pr_wo_labels=true
4-
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
4+
exclude-labels=bydesign,dependencies,duplicate,discussion,question,invalid,wontfix,need info,docs
55
enhancement-label=:sparkles: Implemented enhancements:
66
bugs-label=:bug: Fixed bugs:
77
issues-label=:hammer: Other:

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github_token: ${{ secrets.GITHUB_TOKEN }}
1818

1919
- name: 🤘 checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
ref: main

.github/workflows/dotnet-file.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ env:
1212

1313
jobs:
1414
run:
15+
permissions:
16+
contents: write
1517
uses: devlooped/oss/.github/workflows/dotnet-file-core.yml@main
16-
secrets: inherit
18+
secrets:
19+
BOT_NAME: ${{ secrets.BOT_NAME }}
20+
BOT_EMAIL: ${{ secrets.BOT_EMAIL }}
21+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/includes.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
includes:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
1417
steps:
1518
- name: 🤖 defaults
1619
uses: devlooped/actions-bot@v1
@@ -21,16 +24,17 @@ jobs:
2124
github_token: ${{ secrets.GITHUB_TOKEN }}
2225

2326
- name: 🤘 checkout
24-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2528
with:
2629
token: ${{ env.GH_TOKEN }}
2730

2831
- name: +Mᐁ includes
2932
uses: devlooped/actions-includes@v1
3033

3134
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v4
35+
uses: peter-evans/create-pull-request@v6
3336
with:
37+
add-paths: '**.md'
3438
base: main
3539
branch: markdown-includes
3640
delete-branch: true

.github/workflows/publish.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,57 @@
55
name: publish
66
on:
77
release:
8-
types: [released]
8+
types: [prereleased, released]
99

1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
1313
PackOnBuild: true
1414
GeneratePackageOnBuild: true
15-
15+
VersionLabel: ${{ github.ref }}
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17+
MSBUILDTERMINALLOGGER: auto
18+
SLEET_FEED_URL: https://api.nuget.org/v3/index.json
19+
1620
jobs:
1721
publish:
18-
runs-on: ubuntu-latest
22+
runs-on: ${{ vars.PUBLISH_AGENT || 'ubuntu-latest' }}
1923
steps:
2024
- name: 🤘 checkout
21-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2226
with:
2327
submodules: recursive
2428
fetch-depth: 0
2529

30+
- name: ⚙ dotnet
31+
uses: devlooped/actions-dotnet-env@v1
32+
2633
- name: 🙏 build
27-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
34+
run: dotnet build -m:1 -bl:build.binlog
2835

2936
- name: 🧪 test
30-
uses: ./.github/workflows/test
37+
run: |
38+
dotnet tool update -g dotnet-retest
39+
dotnet retest -- --no-build
40+
41+
- name: 🐛 logs
42+
uses: actions/upload-artifact@v4
43+
if: runner.debug && always()
44+
with:
45+
name: logs
46+
path: '*.binlog'
3147

3248
- name: 🚀 nuget
33-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
49+
env:
50+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
51+
if: ${{ env.NUGET_API_KEY != '' && github.event.action != 'prereleased' }}
52+
working-directory: bin
53+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
54+
55+
- name: 🚀 sleet
56+
env:
57+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
58+
if: env.SLEET_CONNECTION != ''
59+
run: |
60+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
61+
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"

.github/workflows/sponsor.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)