Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6d87c9f

Browse files
committedJun 5, 2024·
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Upload binlog artifact on debug runs devlooped/oss@a67ae78 - Set env:gh_token if present as secret devlooped/oss@97ebd18 - Only ignore App folder directly under the root devlooped/oss@02811fa - Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f - Update to checkout@v4 devlooped/oss@5fb1723 - Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59 - 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 - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83
1 parent 093fae5 commit 6d87c9f

10 files changed

+60
-33
lines changed
 

‎.github/workflows/build.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ env:
2121
VersionLabel: ${{ github.ref }}
2222
PackOnBuild: true
2323
GeneratePackageOnBuild: true
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2425

2526
defaults:
2627
run:
@@ -33,7 +34,7 @@ jobs:
3334
matrix: ${{ steps.lookup.outputs.matrix }}
3435
steps:
3536
- name: 🤘 checkout
36-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3738

3839
- name: 🔎 lookup
3940
id: lookup
@@ -52,13 +53,13 @@ jobs:
5253
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5354
steps:
5455
- name: 🤘 checkout
55-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5657
with:
5758
submodules: recursive
5859
fetch-depth: 0
5960

6061
- name: 🙏 build
61-
run: dotnet build -m:1
62+
run: dotnet build -m:1 -bl:build.binlog
6263

6364
- name: ⚙ GNU grep
6465
if: matrix.os == 'macOS-latest'
@@ -69,6 +70,13 @@ jobs:
6970
- name: 🧪 test
7071
uses: ./.github/workflows/test
7172

73+
- name: 🐛 logs
74+
uses: actions/upload-artifact@v3
75+
if: runner.debug && always()
76+
with:
77+
name: logs
78+
path: '*.binlog'
79+
7280
# Only push CI package to sleet feed if building on ubuntu (fastest)
7381
- name: 🚀 sleet
7482
env:
@@ -82,7 +90,7 @@ jobs:
8290
runs-on: ubuntu-latest
8391
steps:
8492
- name: 🤘 checkout
85-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
8694
with:
8795
submodules: recursive
8896
fetch-depth: 0

‎.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

+10-2
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,30 @@ env:
1212
Configuration: Release
1313
PackOnBuild: true
1414
GeneratePackageOnBuild: true
15+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1516

1617
jobs:
1718
publish:
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: 🤘 checkout
21-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2223
with:
2324
submodules: recursive
2425
fetch-depth: 0
2526

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

2930
- name: 🧪 test
3031
uses: ./.github/workflows/test
3132

33+
- name: 🐛 logs
34+
uses: actions/upload-artifact@v3
35+
if: runner.debug && always()
36+
with:
37+
name: logs
38+
path: '*.binlog'
39+
3240
- name: 🚀 nuget
3341
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

‎.github/workflows/sponsor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: 🤘 checkout
1717
if: env.token != ''
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- name: 💜 sponsor
2121
if: env.token != ''

‎.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

‎.netconfig

+16-16
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
weak
3838
[file ".github/workflows/build.yml"]
3939
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
40-
sha = 6e7a3ab866a523d036e95066ab63351b63cc8a24
41-
etag = 11c16867077f1d67b23a75e83556d3cd761aa6a69fd6c6bbed7d0f6b202c33da
40+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
41+
etag = 6efc7d096b25bb4bbeffe7960a1194f1ceb5d21abeda85d28b55594b648ab44a
4242
weak
4343
[file ".github/workflows/changelog.config"]
4444
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
@@ -47,28 +47,28 @@
4747
weak
4848
[file ".github/workflows/changelog.yml"]
4949
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.yml
50-
sha = a4b66eb5f4dfb9704502f19f59ba33cb4855188c
51-
etag = 54c0b571648b1055beb3ddac180b34e93a9869b9f0277de306901b2c1dbe0b2c
50+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
51+
etag = ad1efa56d6024ee1add2bcda81a7e4e38d0e9069473c6ff70374d5ce06af1f5a
5252
weak
5353
[file ".github/workflows/dotnet-file.yml"]
5454
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-file.yml
55-
sha = f08c3f28e46e28eb31e70846d65e57aa9553ce56
56-
etag = 567444486383d032c1c5fbc538f07e860f92b1d08c66ac6ffb1db64ca539251c
55+
sha = 7afe350f7e80a230e922db026d4e1198ba15cae1
56+
etag = 65e9794df6caff779eb989c8f71ddf4d4109b24a75af79e4f8d0fe6ba7bd9702
5757
weak
5858
[file ".github/workflows/includes.yml"]
5959
url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
60-
sha = ac753b791d03997eb655efb26ae141b51addd1c0
61-
etag = fcd94a08ac9ebc0e8351deac4e7f085cf8ef67816cc50006e068f44166096eb8
60+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
61+
etag = e5ee22e115c925fb85ec931cda3ac811fcc453c03904554fa3f573935b221d34
6262
weak
6363
[file ".github/workflows/publish.yml"]
6464
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
65-
sha = 6e7a3ab866a523d036e95066ab63351b63cc8a24
66-
etag = d2ca0380f60f4396fcf250abe334da9a3edeac6612f9d77e5dd8a93d30e46b6c
65+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
66+
etag = 9ea4083894308a610742488923d2a44778ebba6ca73fb13424647d9a82c918b4
6767
weak
6868
[file ".github/workflows/sponsor.yml"]
6969
url = https://github.com/devlooped/oss/blob/main/.github/workflows/sponsor.yml
70-
sha = 8990ebb36199046e0b8098bad9e46dcef739c56e
71-
etag = e1dc114d2e8b57d50649989d32dbf0c9080ec77da3738a4cc79e9256d6ca5d3e
70+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
71+
etag = 0849ee61af6daee29615f9632173b4e82da5bfa9d78ff28907e9408bd5acde4d
7272
weak
7373
[file ".github/workflows/test/action.yml"]
7474
url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml
@@ -77,8 +77,8 @@
7777
weak
7878
[file ".gitignore"]
7979
url = https://github.com/devlooped/oss/blob/main/.gitignore
80-
sha = ef852e7d2ec9a845dac272dfc479909c0bc6d9f3
81-
etag = a556d6108892aa8e7e63476f4fad3a898b3ec1deda94332dd4e89d2fb6b555ca
80+
sha = 02811fa23b0a102b9b33048335d41e515bf75737
81+
etag = a9c37ae312afac14b78436a7d018af4483d88736b5f780576f2c5a0b3f14998c
8282
weak
8383
[file "Directory.Build.rsp"]
8484
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
@@ -102,8 +102,8 @@
102102
weak
103103
[file "src/Directory.Build.props"]
104104
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
105-
sha = b1d14c6379e5820eb2c30e08bedbdf6e9c8e8cb2
106-
etag = 33cd19e0f599f444c320406da3452e9e84d28c3bb13c09e9190d9d2e7f129545
105+
sha = 6e96c592c7b44bfda10404b9f90e4b8fab299249
106+
etag = a4925eb815bbcecc022de8d3245db069573d96ac5ecdf5f0e604f06b5577b01e
107107
weak
108108
[file "src/Directory.Build.targets"]
109109
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets

‎readme.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,19 @@ foreach (var content in pub.Package.Navigation)
3737
[![Stephen Shaw](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/decriptor.png "Stephen Shaw")](https://github.com/decriptor)
3838
[![Torutek](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/torutek-gh.png "Torutek")](https://github.com/torutek-gh)
3939
[![DRIVE.NET, Inc.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/drivenet.png "DRIVE.NET, Inc.")](https://github.com/drivenet)
40-
[![Daniel Gnägi](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dgnaegi.png "Daniel Gnägi")](https://github.com/dgnaegi)
4140
[![Ashley Medway](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/AshleyMedway.png "Ashley Medway")](https://github.com/AshleyMedway)
4241
[![Keith Pickford](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Keflon.png "Keith Pickford")](https://github.com/Keflon)
4342
[![Thomas Bolon](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tbolon.png "Thomas Bolon")](https://github.com/tbolon)
4443
[![Kori Francis](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png "Kori Francis")](https://github.com/kfrancis)
45-
[![Sean Killeen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SeanKilleen.png "Sean Killeen")](https://github.com/SeanKilleen)
4644
[![Toni Wenzel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png "Toni Wenzel")](https://github.com/twenzel)
4745
[![Giorgi Dalakishvili](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Giorgi.png "Giorgi Dalakishvili")](https://github.com/Giorgi)
4846
[![Mike James](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MikeCodesDotNET.png "Mike James")](https://github.com/MikeCodesDotNET)
47+
[![Uno Platform](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png "Uno Platform")](https://github.com/unoplatform)
4948
[![Dan Siegel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png "Dan Siegel")](https://github.com/dansiegel)
5049
[![Reuben Swartz](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png "Reuben Swartz")](https://github.com/rbnswartz)
5150
[![Jacob Foshee](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png "Jacob Foshee")](https://github.com/jfoshee)
5251
[![](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png "")](https://github.com/Mrxx99)
5352
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson")](https://github.com/eajhnsn1)
54-
[![Norman Mackay](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/mackayn.png "Norman Mackay")](https://github.com/mackayn)
55-
[![Certify The Web](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/certifytheweb.png "Certify The Web")](https://github.com/certifytheweb)
5653
[![Ix Technologies B.V.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png "Ix Technologies B.V.")](https://github.com/IxTechnologies)
5754
[![David JENNI](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png "David JENNI")](https://github.com/davidjenni)
5855
[![Jonathan ](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png "Jonathan ")](https://github.com/Jonathan-Hickey)
@@ -69,6 +66,8 @@ foreach (var content in pub.Package.Navigation)
6966
[![sorahex](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png "sorahex")](https://github.com/sorahex)
7067
[![Zheyu Shen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png "Zheyu Shen")](https://github.com/arsdragonfly)
7168
[![Vezel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png "Vezel")](https://github.com/vezel-dev)
69+
[![ChilliCream](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png "ChilliCream")](https://github.com/ChilliCream)
70+
[![4OTC](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png "4OTC")](https://github.com/4OTC)
7271

7372

7473
<!-- sponsors.md -->

‎src/Directory.Build.props

+10
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,16 @@
142142
<ProjectProperty Include="PublicKeyToken" />
143143
</ItemGroup>
144144

145+
<ItemGroup Label="Throw">
146+
<Using Include="System.ArgumentException" Static="true" />
147+
<Using Include="System.ArgumentOutOfRangeException" Static="true" />
148+
<Using Include="System.ArgumentNullException" Static="true" />
149+
</ItemGroup>
150+
145151
<Import Project="Directory.props" Condition="Exists('Directory.props')"/>
146152
<Import Project="Directory.props.user" Condition="Exists('Directory.props.user')" />
153+
154+
<!-- Implemented by SDK in .targets, guaranteeing it's overwritten. Added here since we add a DependsOnTargets to it.
155+
Covers backwards compatiblity with non-SDK projects. -->
156+
<Target Name="InitializeSourceControlInformation" />
147157
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.