Skip to content

Commit e72b61a

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Use custom stale action to exempt authors devlooped/oss@03b7d53 - Update to checkout@v4 devlooped/oss@5fb1723 - 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 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - 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 - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49 - Fix typo in targets devlooped/oss@33a20db - 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
1 parent 714d162 commit e72b61a

File tree

15 files changed

+165
-161
lines changed

15 files changed

+165
-161
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,31 @@
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
26+
VersionPrefix: 42.42.${{ github.run_number }}
27+
VersionLabel: ${{ github.ref }}
2428
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25-
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
31+
2632
defaults:
2733
run:
2834
shell: bash
@@ -34,7 +40,7 @@ jobs:
3440
matrix: ${{ steps.lookup.outputs.matrix }}
3541
steps:
3642
- name: 🤘 checkout
37-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3844

3945
- name: 🔎 lookup
4046
id: lookup
@@ -53,22 +59,18 @@ jobs:
5359
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5460
steps:
5561
- name: 🤘 checkout
56-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
5763
with:
5864
submodules: recursive
5965
fetch-depth: 0
6066

6167
- name: 🙏 build
6268
run: dotnet build -m:1 -bl:build.binlog
6369

64-
- name: ⚙ GNU grep
65-
if: matrix.os == 'macOS-latest'
66-
run: |
67-
brew install grep
68-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
69-
7070
- name: 🧪 test
71-
uses: ./.github/workflows/test
71+
run: |
72+
dotnet tool update -g dotnet-retest
73+
dotnet retest -- --no-build
7274
7375
- name: 🐛 logs
7476
uses: actions/upload-artifact@v3
@@ -77,7 +79,6 @@ jobs:
7779
name: logs
7880
path: '*.binlog'
7981

80-
# Only push CI package to sleet feed if building on ubuntu (fastest)
8182
- name: 🚀 sleet
8283
env:
8384
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
@@ -90,7 +91,7 @@ jobs:
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

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: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,34 @@
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+
VersionLabel: ${{ github.ref }}
1516
GH_TOKEN: ${{ secrets.GH_TOKEN }}
16-
17+
MSBUILDTERMINALLOGGER: auto
18+
1719
jobs:
1820
publish:
1921
runs-on: ubuntu-latest
2022
steps:
2123
- name: 🤘 checkout
22-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2325
with:
2426
submodules: recursive
2527
fetch-depth: 0
2628

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

3032
- name: 🧪 test
31-
uses: ./.github/workflows/test
33+
run: |
34+
dotnet tool update -g dotnet-retest
35+
dotnet retest -- --no-build
3236
3337
- name: 🐛 logs
3438
uses: actions/upload-artifact@v3
@@ -38,4 +42,15 @@ jobs:
3842
path: '*.binlog'
3943

4044
- name: 🚀 nuget
45+
env:
46+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47+
if: env.NUGET_API_KEY != ''
4148
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

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

.github/workflows/stale.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
env:
33+
GH_TOKEN: ${{ github.token }}
34+
run: |
35+
# add random sleep since we run on fixed schedule
36+
$wait = get-random -max 180
37+
echo "Waiting random $wait seconds to start"
38+
sleep $wait
39+
# get currently authenticated user rate limit info
40+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
41+
# if we don't have at least 100 requests left, wait until reset
42+
if ($rate.remaining -lt 100) {
43+
$wait = ($rate.reset - (Get-Date (Get-Date).ToUniversalTime() -UFormat %s))
44+
echo "Rate limit remaining is $($rate.remaining), waiting for $($wait / 1000) seconds to reset"
45+
sleep $wait
46+
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
47+
echo "Rate limit has reset to $($rate.remaining) requests"
48+
}
49+
50+
- name: ✏️ label
51+
# pending merge: https://github.com/actions/stale/pull/1176
52+
uses: kzu/stale@c8450312ba97b204bf37545cb249742144d6ca69
53+
with:
54+
ascending: true # Process the oldest issues first
55+
stale-issue-label: 'stale'
56+
stale-issue-message: |
57+
Due to lack of recent activity, this issue has been labeled as 'stale'.
58+
It will be closed if no further activity occurs within ${{ fromJson(inputs.daysBeforeClose || 30 ) }} more days.
59+
Any new comment will remove the label.
60+
close-issue-message: |
61+
This issue will now be closed since it has been labeled 'stale' without activity for ${{ fromJson(inputs.daysBeforeClose || 30 ) }} days.
62+
days-before-stale: ${{ fromJson(inputs.daysBeforeStale || 180) }}
63+
days-before-close: ${{ fromJson(inputs.daysBeforeClose || 30 ) }}
64+
days-before-pr-close: -1 # Do not close PRs labeled as 'stale'
65+
operations-per-run: ${{ fromJson(inputs.operationsPerRun || 4000 )}}
66+
exempt-all-milestones: true
67+
exempt-all-assignees: true
68+
exempt-issue-labels: priority,sponsor,backed
69+
exempt-authors: kzu

.github/workflows/test/action.yml

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

0 commit comments

Comments
 (0)