Skip to content

Commit fc9ec56

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Improve triage actions on issues devlooped/oss@33000c0 - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Update to checkout@v4 devlooped/oss@5fb1723
1 parent f2dcabd commit fc9ec56

17 files changed

+247
-171
lines changed

.gitattributes

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
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
54

65
# These are windows specific files which we may as well ensure are
76
# always crlf on checkout
87
*.bat text eol=crlf
98
*.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/release.yml

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

+27-18
Original file line numberDiff line numberDiff line change
@@ -4,24 +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
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+
2532
defaults:
2633
run:
2734
shell: bash
@@ -33,7 +40,7 @@ jobs:
3340
matrix: ${{ steps.lookup.outputs.matrix }}
3441
steps:
3542
- name: 🤘 checkout
36-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3744

3845
- name: 🔎 lookup
3946
id: lookup
@@ -52,37 +59,39 @@ jobs:
5259
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5360
steps:
5461
- name: 🤘 checkout
55-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
5663
with:
5764
submodules: recursive
5865
fetch-depth: 0
5966

6067
- name: 🙏 build
61-
run: dotnet build -m:1
68+
run: dotnet build -m:1 -bl:build.binlog
6269

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

72-
# Only push CI package to sleet feed if building on ubuntu (fastest)
7382
- name: 🚀 sleet
7483
env:
7584
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
7685
if: env.SLEET_CONNECTION != ''
7786
run: |
78-
dotnet tool install -g --version 4.0.18 sleet
87+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
7988
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"
8089
8190
dotnet-format:
8291
runs-on: ubuntu-latest
8392
steps:
8493
- name: 🤘 checkout
85-
uses: actions/checkout@v2
94+
uses: actions/checkout@v4
8695
with:
8796
submodules: recursive
8897
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

+6-2
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

+31-7
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,53 @@
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+
1619
jobs:
1720
publish:
18-
runs-on: ubuntu-latest
21+
runs-on: ${{ vars.PUBLISH_AGENT || 'ubuntu-latest' }}
1922
steps:
2023
- name: 🤘 checkout
21-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2225
with:
2326
submodules: recursive
2427
fetch-depth: 0
2528

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

2932
- name: 🧪 test
30-
uses: ./.github/workflows/test
33+
run: |
34+
dotnet tool update -g dotnet-retest
35+
dotnet retest -- --no-build
36+
37+
- name: 🐛 logs
38+
uses: actions/upload-artifact@v3
39+
if: runner.debug && always()
40+
with:
41+
name: logs
42+
path: '*.binlog'
3143

3244
- name: 🚀 nuget
33-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
45+
env:
46+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47+
if: ${{ env.NUGET_API_KEY != '' && github.event.action != 'prereleased' }}
48+
working-directory: bin
49+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
50+
51+
- name: 🚀 sleet
52+
env:
53+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
54+
if: env.SLEET_CONNECTION != ''
55+
run: |
56+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
57+
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/test/action.yml

-36
This file was deleted.

0 commit comments

Comments
 (0)