Skip to content

Commit 72de265

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Update branches for push event in build.yml devlooped/oss@5da103c - Ignore *.local recursively devlooped/oss@a225b7a - Keep the --yes on dnx runfile devlooped/oss@9c2f8c7 - Ensure dnx run succeeds even on Windows devlooped/oss@7f5f9ee - Update create-pull-request action to version 8 devlooped/oss@0662872 - Add readme template devlooped/oss@2cc4ada
1 parent 7d2a63d commit 72de265

8 files changed

Lines changed: 193 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- Release
1313
- Debug
1414
push:
15-
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
15+
branches: [ main, 'feature/*', 'rel/*' ]
1616
paths-ignore:
1717
- changelog.md
1818
- readme.md
@@ -72,9 +72,8 @@ jobs:
7272
run: dotnet build -m:1 -bl:build.binlog
7373

7474
- name: 🧪 test
75-
run: |
76-
dotnet tool update -g dotnet-retest
77-
dotnet retest -- --no-build
75+
shell: pwsh
76+
run: dnx --yes retest -- --no-build
7877

7978
- name: 🐛 logs
8079
uses: actions/upload-artifact@v4

.github/workflows/includes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
((get-content -raw $file) -replace '\$product\$',$product).trim() | set-content $file
5151
5252
- name: ✍ pull request
53-
uses: peter-evans/create-pull-request@v6
53+
uses: peter-evans/create-pull-request@v8
5454
with:
5555
add-paths: |
5656
**.md
57-
osmfeula.txt
57+
*.txt
5858
base: main
5959
branch: markdown-includes
6060
delete-branch: true

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ jobs:
3434
run: dotnet build -m:1 -bl:build.binlog
3535

3636
- name: 🧪 test
37-
run: |
38-
dotnet tool update -g dotnet-retest
39-
dotnet retest -- --no-build
37+
shell: pwsh
38+
run: dnx --yes retest -- --no-build
4039

4140
- name: 🐛 logs
4241
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ BenchmarkDotNet.Artifacts
1212
.idea
1313
local.settings.json
1414
.env
15+
*.local
1516

1617
*.suo
1718
*.sdf

.netconfig

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
[file ".github/workflows/build.yml"]
8686
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
8787
weak
88-
sha = 56c2b8532c2f86235a0f5bd00ba6eba126f199cf
88+
sha = 5da103cfbc1c4f9b5f59cfa698d2afbd744a7525
8989

90-
etag = bf99c19427f4372ecfe38ec56aa8c411058684fb717da5661f17ac00388b3602
90+
etag = 851af098748f7cfa5bc3cfd4cc404a6de930532b59ceb2b3b535282c41226f3a
9191
[file ".github/workflows/changelog.config"]
9292
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
9393
sha = 08d83cb510732f861416760d37702f9f55bd7f9e
@@ -99,21 +99,21 @@
9999
skip
100100
[file ".github/workflows/includes.yml"]
101101
url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
102-
sha = 2d1fb4ed52b63689f2b20b994512ebac28721243
102+
sha = 06628725a6303bb8c4cf3076a384fc982a91bc0b
103103

104-
etag = 34ade86f020dea717c6a27ad7dcd0069c35be2832c58b0ba961278a1efe34089
104+
etag = 478f91d4126230e57cc601382da1ba23f9daa054645b4af89800d8dd862e64fd
105105
weak
106106
[file ".github/workflows/publish.yml"]
107107
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
108108
weak
109-
sha = 56c2b8532c2f86235a0f5bd00ba6eba126f199cf
109+
sha = 7f5f9ee9f362f7e8f951d618f8f799033550e687
110110

111-
etag = 2ef43521627aa3a91dd55bdc2856ec0c6a93b42485d4fe9d6b181f9ee42c8e18
111+
etag = c60411d1aa4e98e7f69e2d34cbccb8eb7e387ec11f6f8e78ee8d8b92122d7025
112112
[file ".gitignore"]
113113
url = https://github.com/devlooped/oss/blob/main/.gitignore
114-
sha = 3776526342afb3f57da7e80f2095e5fdca3c31c9
114+
sha = a225b7a9f609f26bcc24e0d84f663387be251a7d
115115

116-
etag = 11767f73556aa4c6c8bcc153b77ee8e8114f99fa3b885b0a7d66d082f91e77b3
116+
etag = 20a8b49d57024abbd85aac5b0020c30e5eb68e0384b2761e93727c8780c4a991
117117
weak
118118
[file "Directory.Build.rsp"]
119119
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
@@ -162,3 +162,13 @@
162162
sha = 666a2a7c315f72199c418f11482a950fc69a8901
163163
etag = 91ea15c07bfd784036c6ca931f5b2df7e9767b8367146d96c79caef09d63899f
164164
weak
165+
[file "oss.cs"]
166+
url = https://github.com/devlooped/oss/blob/main/oss.cs
167+
sha = 9c2f8c729d7cd3dd052b5a09d12fb1f3926247e5
168+
etag = e195cacdb0c6ea7ca768514ec94f8595d008c7f5aae805b39beec330895045e3
169+
weak
170+
[file "readme.tmp.md"]
171+
url = https://github.com/devlooped/oss/blob/main/readme.tmp.md
172+
sha = 2cc4ada8059b1e2e3f32089e67dab27a8ddeb7fb
173+
etag = c7c0694bd13d2d7fdc8b0530c80d5cf032cb9fdaaa5e1f814e951e9e6489746a
174+
weak

oss.cs

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
// First run: dnx runfile https://github.com/devlooped/oss/blob/main/oss.cs --yes --alias oss
2+
// Subsequently: dnx runfile oss --yes
3+
#:package Spectre.Console@*
4+
#:package CliWrap@*
5+
6+
using System;
7+
using System.IO;
8+
using System.Net.Http;
9+
using System.Runtime.InteropServices;
10+
using System.Threading.Tasks;
11+
using CliWrap;
12+
using Spectre.Console;
13+
14+
string dotnet = Path.GetFullPath(
15+
Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "..", "..", "..",
16+
RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet"));
17+
18+
AnsiConsole.Write(new FigletText("devlooped oss").Color(Color.Green));
19+
AnsiConsole.WriteLine();
20+
21+
var projectName = AnsiConsole.Prompt(
22+
new TextPrompt<string>("[green]Project name[/]:")
23+
.PromptStyle("yellow")
24+
.ValidationErrorMessage("[red]Project name cannot be empty[/]")
25+
.Validate(v => !string.IsNullOrWhiteSpace(v)));
26+
27+
var repoName = AnsiConsole.Prompt(
28+
new TextPrompt<string>("[green]Repo name[/]:")
29+
.PromptStyle("yellow")
30+
.DefaultValue(projectName));
31+
32+
var packageId = AnsiConsole.Prompt(
33+
new TextPrompt<string>("[green]Package ID[/]:")
34+
.PromptStyle("yellow")
35+
.DefaultValue($"Devlooped.{projectName}"));
36+
37+
AnsiConsole.WriteLine();
38+
AnsiConsole.Write(new Rule("[yellow]Setting up OSS project[/]").RuleStyle("grey").LeftJustified());
39+
AnsiConsole.WriteLine();
40+
41+
await RunDotNet("file init https://github.com/devlooped/oss/blob/main/.netconfig", "Initializing dotnet file sync from devlooped/oss");
42+
await RunDotNet($"new classlib -n {projectName} -o src/{projectName} -f net10.0", $"Creating class library src/{projectName}");
43+
await RunDotNet($"new xunit -n Tests -o src/Tests -f net10.0", "Creating xUnit test project src/Tests");
44+
await RunDotNet($"add src/Tests/Tests.csproj reference src/{projectName}/{projectName}.csproj", $"Adding reference from Tests to {projectName}");
45+
await RunDotNet($"new solution -n {projectName}", $"Creating solution {projectName}.slnx");
46+
await RunDotNet($"sln {projectName}.slnx add src/{projectName}/{projectName}.csproj src/Tests/Tests.csproj", $"Adding projects to {projectName}.slnx");
47+
48+
await AnsiConsole.Status()
49+
.Spinner(Spinner.Known.Dots)
50+
.SpinnerStyle(Style.Parse("green"))
51+
.StartAsync("Downloading readme.md template...", async ctx =>
52+
{
53+
using var http = new HttpClient();
54+
var readmeContent = await http.GetStringAsync(
55+
"https://raw.githubusercontent.com/devlooped/oss/main/readme.tmp.md");
56+
57+
readmeContent = readmeContent
58+
.Replace("{{PROJECT_NAME}}", projectName)
59+
.Replace("{{PACKAGE_ID}}", packageId)
60+
.Replace("{{REPO_NAME}}", repoName);
61+
62+
await File.WriteAllTextAsync("readme.md", readmeContent);
63+
ctx.Status("Downloaded and processed readme.md");
64+
});
65+
66+
AnsiConsole.MarkupLine("[green]✓[/] Created [yellow]readme.md[/]");
67+
68+
await File.WriteAllTextAsync(
69+
Path.Combine("src", projectName, "readme.md"),
70+
$"""
71+
[![EULA](https://img.shields.io/badge/EULA-OSMF-blue?labelColor=black&color=C9FF30)](osmfeula.txt)
72+
[![OSS](https://img.shields.io/github/license/devlooped/oss.svg?color=blue)](license.txt)
73+
[![GitHub](https://img.shields.io/badge/-source-181717.svg?logo=GitHub)](https://github.com/devlooped/{repoName})
74+
75+
<!-- include ../../readme.md#content -->
76+
77+
<!-- include https://github.com/devlooped/.github/raw/main/osmf.md -->
78+
79+
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
80+
81+
<!-- exclude -->
82+
""");
83+
84+
AnsiConsole.WriteLine();
85+
AnsiConsole.Write(new Rule("[green]Done![/]").RuleStyle("grey").LeftJustified());
86+
AnsiConsole.WriteLine();
87+
AnsiConsole.MarkupLine($"[bold]Project:[/] [yellow]{projectName}[/]");
88+
AnsiConsole.MarkupLine($"[bold]Repo:[/] [yellow]{repoName}[/]");
89+
AnsiConsole.MarkupLine($"[bold]Package ID:[/] [yellow]{packageId}[/]");
90+
91+
async Task RunDotNet(string command, string description)
92+
{
93+
AnsiConsole.MarkupLine($"[grey]{Markup.Escape(description)}...[/]");
94+
await Cli.Wrap(dotnet)
95+
.WithArguments(command)
96+
.WithStandardOutputPipe(PipeTarget.ToStream(Console.OpenStandardOutput()))
97+
.WithStandardErrorPipe(PipeTarget.ToStream(Console.OpenStandardError()))
98+
.ExecuteAsync();
99+
AnsiConsole.MarkupLine($"[green]✓[/] {Markup.Escape(description)}");
100+
}

readme.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,25 +504,21 @@ The versioning scheme for packages is:
504504
[![Jacob Foshee](https://avatars.githubusercontent.com/u/480334?v=4&s=39 "Jacob Foshee")](https://github.com/jfoshee)
505505
[![](https://avatars.githubusercontent.com/u/33566379?u=bf62e2b46435a267fa246a64537870fd2449410f&v=4&s=39 "")](https://github.com/Mrxx99)
506506
[![Eric Johnson](https://avatars.githubusercontent.com/u/26369281?u=41b560c2bc493149b32d384b960e0948c78767ab&v=4&s=39 "Eric Johnson")](https://github.com/eajhnsn1)
507-
[![David JENNI](https://avatars.githubusercontent.com/u/3200210?v=4&s=39 "David JENNI")](https://github.com/davidjenni)
508507
[![Jonathan ](https://avatars.githubusercontent.com/u/5510103?u=98dcfbef3f32de629d30f1f418a095bf09e14891&v=4&s=39 "Jonathan ")](https://github.com/Jonathan-Hickey)
509-
[![Charley Wu](https://avatars.githubusercontent.com/u/574719?u=ea7c743490c83e8e4b36af76000f2c71f75d636e&v=4&s=39 "Charley Wu")](https://github.com/akunzai)
510508
[![Ken Bonny](https://avatars.githubusercontent.com/u/6417376?u=569af445b6f387917029ffb5129e9cf9f6f68421&v=4&s=39 "Ken Bonny")](https://github.com/KenBonny)
511509
[![Simon Cropp](https://avatars.githubusercontent.com/u/122666?v=4&s=39 "Simon Cropp")](https://github.com/SimonCropp)
512510
[![agileworks-eu](https://avatars.githubusercontent.com/u/5989304?v=4&s=39 "agileworks-eu")](https://github.com/agileworks-eu)
513511
[![Zheyu Shen](https://avatars.githubusercontent.com/u/4067473?v=4&s=39 "Zheyu Shen")](https://github.com/arsdragonfly)
514512
[![Vezel](https://avatars.githubusercontent.com/u/87844133?v=4&s=39 "Vezel")](https://github.com/vezel-dev)
515513
[![ChilliCream](https://avatars.githubusercontent.com/u/16239022?v=4&s=39 "ChilliCream")](https://github.com/ChilliCream)
516514
[![4OTC](https://avatars.githubusercontent.com/u/68428092?v=4&s=39 "4OTC")](https://github.com/4OTC)
517-
[![Vincent Limo](https://avatars.githubusercontent.com/devlooped-user?s=39 "Vincent Limo")](https://github.com/v-limo)
518515
[![domischell](https://avatars.githubusercontent.com/u/66068846?u=0a5c5e2e7d90f15ea657bc660f175605935c5bea&v=4&s=39 "domischell")](https://github.com/DominicSchell)
519-
[![Justin Wendlandt](https://avatars.githubusercontent.com/u/1068431?u=f7715ed6a8bf926d96ec286f0f1c65f94bf86928&v=4&s=39 "Justin Wendlandt")](https://github.com/jwendl)
520516
[![Adrian Alonso](https://avatars.githubusercontent.com/u/2027083?u=129cf516d99f5cb2fd0f4a0787a069f3446b7522&v=4&s=39 "Adrian Alonso")](https://github.com/adalon)
521-
[![Michael Hagedorn](https://avatars.githubusercontent.com/u/61711586?u=8f653dfcb641e8c18cc5f78692ebc6bb3a0c92be&v=4&s=39 "Michael Hagedorn")](https://github.com/Eule02)
522517
[![torutek](https://avatars.githubusercontent.com/u/33917059?v=4&s=39 "torutek")](https://github.com/torutek)
523-
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=739e110e62a75870c981640447efa5eb2cb3bc8f&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
524-
[![Christoph Hochstätter](https://avatars.githubusercontent.com/u/17645550?u=01bbdcb84d03cac26260f1c951e046d24a324591&v=4&s=39 "Christoph Hochstätter")](https://github.com/christoh)
525-
[![ADS Fund](https://avatars.githubusercontent.com/u/202042116?v=4&s=39 "ADS Fund")](https://github.com/ADS-Fund)
518+
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=110034edf51097a5ee82cb6a94ae5483568e3469&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
519+
[![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel)
520+
[![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness)
521+
[![Lars](https://avatars.githubusercontent.com/u/1727124?v=4&s=39 "Lars")](https://github.com/latonz)
526522

527523

528524
<!-- sponsors.md -->

readme.tmp.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# {{PROJECT_NAME}}
2+
3+
[![Version](https://img.shields.io/nuget/vpre/{{PACKAGE_ID}}.svg?color=royalblue)](https://www.nuget.org/packages/{{PACKAGE_ID}})
4+
[![Downloads](https://img.shields.io/nuget/dt/{{PACKAGE_ID}}.svg?color=darkmagenta)](https://www.nuget.org/packages/{{PACKAGE_ID}})
5+
[![EULA](https://img.shields.io/badge/EULA-OSMF-blue?labelColor=black&color=C9FF30)](https://github.com/devlooped/oss/blob/main/osmfeula.txt)
6+
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/devlooped/oss/blob/main/license.txt)
7+
8+
<!-- include https://github.com/devlooped/.github/raw/main/osmf.md -->
9+
## Open Source Maintenance Fee
10+
11+
To ensure the long-term sustainability of this project, users of this package who generate
12+
revenue must pay an [Open Source Maintenance Fee](https://opensourcemaintenancefee.org).
13+
While the source code is freely available under the terms of the [License](license.txt),
14+
this package and other aspects of the project require [adherence to the Maintenance Fee](osmfeula.txt).
15+
16+
To pay the Maintenance Fee, [become a Sponsor](https://github.com/sponsors/devlooped) at the proper
17+
OSMF tier. A single fee covers all of [Devlooped packages](https://www.nuget.org/profiles/Devlooped).
18+
19+
<!-- https://github.com/devlooped/.github/raw/main/osmf.md -->
20+
<!-- #content -->
21+
## Usage
22+
*{{PROJECT_NAME}}*
23+
<!-- #content -->
24+
---
25+
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
26+
# Sponsors
27+
28+
<!-- sponsors.md -->
29+
[![Clarius Org](https://avatars.githubusercontent.com/u/71888636?v=4&s=39 "Clarius Org")](https://github.com/clarius)
30+
[![MFB Technologies, Inc.](https://avatars.githubusercontent.com/u/87181630?v=4&s=39 "MFB Technologies, Inc.")](https://github.com/MFB-Technologies-Inc)
31+
[![SandRock](https://avatars.githubusercontent.com/u/321868?u=99e50a714276c43ae820632f1da88cb71632ec97&v=4&s=39 "SandRock")](https://github.com/sandrock)
32+
[![DRIVE.NET, Inc.](https://avatars.githubusercontent.com/u/15047123?v=4&s=39 "DRIVE.NET, Inc.")](https://github.com/drivenet)
33+
[![Keith Pickford](https://avatars.githubusercontent.com/u/16598898?u=64416b80caf7092a885f60bb31612270bffc9598&v=4&s=39 "Keith Pickford")](https://github.com/Keflon)
34+
[![Thomas Bolon](https://avatars.githubusercontent.com/u/127185?u=7f50babfc888675e37feb80851a4e9708f573386&v=4&s=39 "Thomas Bolon")](https://github.com/tbolon)
35+
[![Kori Francis](https://avatars.githubusercontent.com/u/67574?u=3991fb983e1c399edf39aebc00a9f9cd425703bd&v=4&s=39 "Kori Francis")](https://github.com/kfrancis)
36+
[![Uno Platform](https://avatars.githubusercontent.com/u/52228309?v=4&s=39 "Uno Platform")](https://github.com/unoplatform)
37+
[![Reuben Swartz](https://avatars.githubusercontent.com/u/724704?u=2076fe336f9f6ad678009f1595cbea434b0c5a41&v=4&s=39 "Reuben Swartz")](https://github.com/rbnswartz)
38+
[![Jacob Foshee](https://avatars.githubusercontent.com/u/480334?v=4&s=39 "Jacob Foshee")](https://github.com/jfoshee)
39+
[![](https://avatars.githubusercontent.com/u/33566379?u=bf62e2b46435a267fa246a64537870fd2449410f&v=4&s=39 "")](https://github.com/Mrxx99)
40+
[![Eric Johnson](https://avatars.githubusercontent.com/u/26369281?u=41b560c2bc493149b32d384b960e0948c78767ab&v=4&s=39 "Eric Johnson")](https://github.com/eajhnsn1)
41+
[![Jonathan ](https://avatars.githubusercontent.com/u/5510103?u=98dcfbef3f32de629d30f1f418a095bf09e14891&v=4&s=39 "Jonathan ")](https://github.com/Jonathan-Hickey)
42+
[![Ken Bonny](https://avatars.githubusercontent.com/u/6417376?u=569af445b6f387917029ffb5129e9cf9f6f68421&v=4&s=39 "Ken Bonny")](https://github.com/KenBonny)
43+
[![Simon Cropp](https://avatars.githubusercontent.com/u/122666?v=4&s=39 "Simon Cropp")](https://github.com/SimonCropp)
44+
[![agileworks-eu](https://avatars.githubusercontent.com/u/5989304?v=4&s=39 "agileworks-eu")](https://github.com/agileworks-eu)
45+
[![Zheyu Shen](https://avatars.githubusercontent.com/u/4067473?v=4&s=39 "Zheyu Shen")](https://github.com/arsdragonfly)
46+
[![Vezel](https://avatars.githubusercontent.com/u/87844133?v=4&s=39 "Vezel")](https://github.com/vezel-dev)
47+
[![ChilliCream](https://avatars.githubusercontent.com/u/16239022?v=4&s=39 "ChilliCream")](https://github.com/ChilliCream)
48+
[![4OTC](https://avatars.githubusercontent.com/u/68428092?v=4&s=39 "4OTC")](https://github.com/4OTC)
49+
[![domischell](https://avatars.githubusercontent.com/u/66068846?u=0a5c5e2e7d90f15ea657bc660f175605935c5bea&v=4&s=39 "domischell")](https://github.com/DominicSchell)
50+
[![Adrian Alonso](https://avatars.githubusercontent.com/u/2027083?u=129cf516d99f5cb2fd0f4a0787a069f3446b7522&v=4&s=39 "Adrian Alonso")](https://github.com/adalon)
51+
[![torutek](https://avatars.githubusercontent.com/u/33917059?v=4&s=39 "torutek")](https://github.com/torutek)
52+
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=110034edf51097a5ee82cb6a94ae5483568e3469&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
53+
[![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel)
54+
[![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness)
55+
[![Lars](https://avatars.githubusercontent.com/u/1727124?v=4&s=39 "Lars")](https://github.com/latonz)
56+
57+
58+
<!-- sponsors.md -->
59+
[![Sponsor this project](https://avatars.githubusercontent.com/devlooped-sponsor?s=118 "Sponsor this project")](https://github.com/sponsors/devlooped)
60+
61+
[Learn more about GitHub Sponsors](https://github.com/sponsors)
62+
63+
<!-- https://github.com/devlooped/sponsors/raw/main/footer.md -->

0 commit comments

Comments
 (0)