Skip to content

Commit 689c56f

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Create stale.yml to label/close stale issues/PRs devlooped/oss@695ccee - Make sure build runs before pack devlooped/oss@ede013a - Switch to PackOnBuild=true and remove pack step devlooped/oss@6e7a3ab - Upload binlog artifact on debug runs devlooped/oss@a67ae78 - Set env:gh_token if present as secret devlooped/oss@97ebd18 - Update to checkout@v4 devlooped/oss@5fb1723 - Update dotnet-file.yml with fix to create pull request action devlooped/oss@11a331d - Don't add random wait on manual dotnet-file runs devlooped/oss@7afe350 - Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59 - Fix dependabot group for tests devlooped/oss@49661db - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Automatically use the new terminal logger if possible devlooped/oss@27a5c9a - Allow choosing build configuration on dispatch devlooped/oss@fef4635 - Remove shared community files from ignores devlooped/oss@65f89e0 - Simplify testing by switching to dotnet-retest devlooped/oss@b5bb972 - Update publish.yml to include prereleased publish devlooped/oss@d793e7a - We don't push just from ubuntu anymore devlooped/oss@7ec9101 - Don't attempt to push to nuget.org without a key devlooped/oss@d11c4dc - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - Push also to sleet if configured devlooped/oss@40ee833 - Only ignore App folder directly under the root devlooped/oss@02811fa - Add common sponsors metadata to assemblies devlooped/oss@0789bf0 - Update assembly metadata format for Funding.GitHub devlooped/oss@5801de0 - SponsorLink metadata will be opt-in only by analyzer projects devlooped/oss@c618ea8 - Fix typo in targets devlooped/oss@33a20db - Skip discussion issues when generating changelog devlooped/oss@08d83cb - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Update includes.yml to include top-level .md devlooped/oss@d152e74 - Add trx logger by default to CLI builds devlooped/oss@a75b141 # clarius/pages
1 parent ead977c commit 689c56f

17 files changed

+182
-148
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ updates:
2929
- "Microsoft.AspNetCore*"
3030
Tests:
3131
patterns:
32-
- "Microsoft.NET.Tests*"
32+
- "Microsoft.NET.Test*"
3333
- "xunit*"
3434
- "coverlet*"
3535
ThisAssembly:

.github/workflows/build.yml

+24-23
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,30 @@
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
24+
PackOnBuild: true
25+
GeneratePackageOnBuild: true
2026
VersionPrefix: 42.42.${{ github.run_number }}
2127
VersionLabel: ${{ github.ref }}
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
2231

2332
defaults:
2433
run:
@@ -31,7 +40,7 @@ jobs:
3140
matrix: ${{ steps.lookup.outputs.matrix }}
3241
steps:
3342
- name: 🤘 checkout
34-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3544

3645
- name: 🔎 lookup
3746
id: lookup
@@ -50,27 +59,26 @@ jobs:
5059
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5160
steps:
5261
- name: 🤘 checkout
53-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
5463
with:
5564
submodules: recursive
5665
fetch-depth: 0
5766

5867
- name: 🙏 build
5968
run: dotnet build -m:1 -bl:build.binlog
6069

61-
- name: ⚙ GNU grep
62-
if: matrix.os == 'macOS-latest'
63-
run: |
64-
brew install grep
65-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
66-
6770
- name: 🧪 test
68-
uses: ./.github/workflows/test
71+
run: |
72+
dotnet tool update -g dotnet-retest
73+
dotnet retest -- --no-build
6974
70-
- name: 📦 pack
71-
run: dotnet pack -m:1 -bl:pack.binlog
75+
- name: 🐛 logs
76+
uses: actions/upload-artifact@v3
77+
if: runner.debug && always()
78+
with:
79+
name: logs
80+
path: '*.binlog'
7281

73-
# Only push CI package to sleet feed if building on ubuntu (fastest)
7482
- name: 🚀 sleet
7583
env:
7684
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
@@ -79,18 +87,11 @@ jobs:
7987
dotnet tool install -g --version 4.0.18 sleet
8088
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"
8189
82-
- name: 🐛 logs
83-
uses: actions/upload-artifact@v3
84-
if: runner.debug && always()
85-
with:
86-
name: logs
87-
path: '*.binlog'
88-
8990
dotnet-format:
9091
runs-on: ubuntu-latest
9192
steps:
9293
- name: 🤘 checkout
93-
uses: actions/checkout@v2
94+
uses: actions/checkout@v4
9495
with:
9596
submodules: recursive
9697
fetch-depth: 0

.github/workflows/changelog.config

+1-1
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

+1-1
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: 🤘 checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030
ref: main
3131
token: ${{ env.GH_TOKEN }}
3232

3333
- name: ⌛ rate
3434
shell: pwsh
35+
if: github.event_name != 'workflow_dispatch'
3536
run: |
3637
# add random sleep since we run on fixed schedule
3738
sleep (get-random -max 60)
@@ -70,7 +71,7 @@ jobs:
7071
validate: false
7172

7273
- name: ✍ pull request
73-
uses: peter-evans/create-pull-request@v4
74+
uses: peter-evans/create-pull-request@v6
7475
with:
7576
base: main
7677
branch: dotnet-file-sync

.github/workflows/includes.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: 🤘 checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
token: ${{ env.GH_TOKEN }}
2727

2828
- name: +Mᐁ includes
2929
uses: devlooped/actions-includes@v1
3030

3131
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v4
32+
uses: peter-evans/create-pull-request@v6
3333
with:
34+
add-paths: '**.md'
3435
base: main
3536
branch: markdown-includes
3637
delete-branch: true

.github/workflows/publish.yml

+27-12
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,52 @@
55
name: publish
66
on:
77
release:
8-
types: [released]
8+
types: [prereleased, released]
99

1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13-
13+
PackOnBuild: true
14+
GeneratePackageOnBuild: true
15+
VersionLabel: ${{ github.ref }}
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17+
MSBUILDTERMINALLOGGER: auto
18+
1419
jobs:
1520
publish:
1621
runs-on: ubuntu-latest
1722
steps:
1823
- name: 🤘 checkout
19-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2025
with:
2126
submodules: recursive
2227
fetch-depth: 0
2328

2429
- name: 🙏 build
25-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog
30+
run: dotnet build -m:1 -bl:build.binlog
2631

2732
- name: 🧪 test
28-
uses: ./.github/workflows/test
29-
30-
- name: 📦 pack
31-
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:pack.binlog
32-
33-
- name: 🚀 nuget
34-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
33+
run: |
34+
dotnet tool update -g dotnet-retest
35+
dotnet retest -- --no-build
3536
3637
- name: 🐛 logs
3738
uses: actions/upload-artifact@v3
3839
if: runner.debug && always()
3940
with:
4041
name: logs
41-
path: '*.binlog'
42+
path: '*.binlog'
43+
44+
- name: 🚀 nuget
45+
env:
46+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47+
if: env.NUGET_API_KEY != ''
48+
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
49+
50+
- name: 🚀 sleet
51+
env:
52+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
53+
if: env.SLEET_CONNECTION != ''
54+
run: |
55+
dotnet tool install -g --version 4.0.18 sleet
56+
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

-24
This file was deleted.

.github/workflows/stale.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: 'stale'
2+
on:
3+
schedule:
4+
- cron: '42 0 * * *'
5+
6+
workflow_dispatch:
7+
# Manual triggering through the GitHub UI, API, or CLI
8+
inputs:
9+
daysBeforeStale:
10+
required: true
11+
default: "180"
12+
daysBeforeClose:
13+
required: true
14+
default: "30"
15+
operationsPerRun:
16+
required: true
17+
default: "4000"
18+
19+
permissions:
20+
actions: write # For managing the operation state cache
21+
issues: write
22+
23+
jobs:
24+
stale:
25+
# Do not run on forks
26+
if: github.repository_owner == 'devlooped'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: ⌛ rate
30+
shell: pwsh
31+
if: github.event_name != 'workflow_dispatch'
32+
run: |
33+
# add random sleep since we run on fixed schedule
34+
sleep (get-random -max 60)
35+
# get currently authenticated user rate limit info
36+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
37+
# if we don't have at least 100 requests left, wait until reset
38+
if ($rate.remaining -lt 100) {
39+
$wait = ($rate.reset - (Get-Date (Get-Date).ToUniversalTime() -UFormat %s))
40+
echo "Rate limit remaining is $($rate.remaining), waiting for $($wait / 1000) seconds to reset"
41+
sleep $wait
42+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
43+
echo "Rate limit has reset to $($rate.remaining) requests"
44+
}
45+
46+
- name: ✏️ label
47+
uses: actions/stale@v9
48+
with:
49+
ascending: true # Process the oldest issues first
50+
stale-issue-label: 'stale'
51+
stale-issue-message: |
52+
Due to lack of recent activity, this issue has been labeled as 'stale'.
53+
It will be closed if no further activity occurs within ${{ fromJson(inputs.daysBeforeClose || 30 ) }} more days.
54+
Any new comment will remove the label.
55+
close-issue-message: |
56+
This issue will now be closed since it has been labeled 'stale' without activity for ${{ fromJson(inputs.daysBeforeClose || 30 ) }} days.
57+
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 180) }}
58+
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }}
59+
days-before-pr-close: -1 # Do not close PRs labeled as 'stale'
60+
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}}
61+
exempt-all-milestones: true
62+
exempt-all-assignees: true
63+
exempt-issue-labels: priority,sponsor,backed

.github/workflows/test/action.yml

-36
This file was deleted.

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
bin
2-
app
32
obj
43
artifacts
54
pack
65
TestResults
76
results
87
BenchmarkDotNet.Artifacts
8+
/app
99
.vs
1010
.vscode
1111
.idea

0 commit comments

Comments
 (0)