Skip to content

Commit 0e9d749

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Switch to built-in release notes generator devlooped/oss@2c80ab0 - Ignore docs merges too devlooped/oss@055a8b7 - Don't fail on background workflows devlooped/oss@f08c3f2 - Add specific skip rules for tests devlooped/oss@448cf45 - Switch to newer syntax for output variables devlooped/oss@9dc1ae2 - Automatically build from dev/* branches too devlooped/oss@6d3dd85 - Drop net6 forced install, it's built-in all agents now devlooped/oss@34c1bf6 - Drop net6 setup on prior to dotnet format devlooped/oss@4b31891 - Remove limitation on matrix os for sleet publishing devlooped/oss@7e3288c - Drop net6 setup on publish too devlooped/oss@d302256 - Remove duplicate community files and unused stuff devlooped/oss@a4b66eb - Switch to old nuget.config for package sources devlooped/oss@c6f74ce - Enable C# compiler strict mode by default devlooped/oss@ef8e7fa # clarius/pages
1 parent c0ddd73 commit 0e9d749

14 files changed

Lines changed: 110 additions & 132 deletions

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,10 @@ csharp_new_line_before_finally = true
8888
csharp_new_line_before_members_in_object_initializers = true
8989
csharp_new_line_before_members_in_anonymous_types = true
9090

91+
# Test settings
92+
[**/*Tests*/*{.cs,.vb}]
9193
# xUnit1013: Public method should be marked as test. Allows using records as test classes
9294
dotnet_diagnostic.xUnit1013.severity = none
95+
96+
# VSTHRD200: Use "Async" suffix for async methods
97+
dotnet_diagnostic.VSTHRD200.severity = none

.github/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- bydesign
5+
- dependencies
6+
- duplicate
7+
- question
8+
- invalid
9+
- wontfix
10+
- need info
11+
- docs
12+
authors:
13+
- devlooped-bot
14+
- dependabot
15+
- github-actions
16+
categories:
17+
- title: ✨ Implemented enhancements
18+
labels:
19+
- enhancement
20+
- title: 🐛 Fixed bugs
21+
labels:
22+
- bug
23+
- title: 🔨 Other
24+
labels:
25+
- '*'

.github/workflows/build.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: build
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [ main, dev, 'feature/*', 'rel/*' ]
8+
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
99
paths-ignore:
1010
- changelog.md
1111
- code-of-conduct.md
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
$path = './.github/workflows/os-matrix.json'
3939
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
40-
echo "::set-output name=matrix::$os"
40+
echo "matrix=$os" >> $env:GITHUB_OUTPUT
4141
4242
build:
4343
needs: os-matrix
@@ -53,12 +53,6 @@ jobs:
5353
submodules: recursive
5454
fetch-depth: 0
5555

56-
- name: ⚙ dotnet
57-
uses: actions/setup-dotnet@v1
58-
if: matrix.os != 'windows-latest'
59-
with:
60-
dotnet-version: '6.0.x'
61-
6256
- name: 🙏 build
6357
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
6458

@@ -78,7 +72,7 @@ jobs:
7872
- name: 🚀 sleet
7973
env:
8074
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
81-
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
75+
if: env.SLEET_CONNECTION != ''
8276
run: |
8377
dotnet tool install -g --version 4.0.18 sleet
8478
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"
@@ -93,10 +87,5 @@ jobs:
9387
submodules: recursive
9488
fetch-depth: 0
9589

96-
- name: ⚙ dotnet
97-
uses: actions/setup-dotnet@v1
98-
with:
99-
dotnet-version: '6.0.x'
100-
10190
- name: ✓ ensure format
10291
run: dotnet format --verify-no-changes -v:diag --exclude ~/.nuget
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
4+
exclude-labels=bydesign,dependencies,duplicate,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
@@ -31,7 +31,7 @@ jobs:
3131
- name: ⚙ changelog
3232
run: |
3333
gem install github_changelog_generator
34-
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token $GH_TOKEN --o changelog.md --config-file .github/.github_changelog_generator
34+
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token $GH_TOKEN --o changelog.md --config-file .github/workflows/changelog.config
3535
3636
- name: 🚀 changelog
3737
run: |

.github/workflows/dotnet-file.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
jobs:
1414
sync:
1515
runs-on: windows-latest
16+
continue-on-error: true
1617
steps:
1718
- name: 🤖 defaults
1819
uses: devlooped/actions-bot@v1
@@ -69,8 +70,7 @@ jobs:
6970
validate: false
7071

7172
- name: ✍ pull request
72-
uses: peter-evans/create-pull-request@v3
73-
continue-on-error: true
73+
uses: peter-evans/create-pull-request@v4
7474
with:
7575
base: main
7676
branch: dotnet-file-sync

.github/workflows/includes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: devlooped/actions-include@v1
3030

3131
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v3
32+
uses: peter-evans/create-pull-request@v4
3333
with:
3434
base: main
3535
branch: markdown-includes

.github/workflows/pages.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
# Workflow to cross-post a jekyll site (or GitHub Pages)
2+
# to another org/repo.
3+
# Required secrets in repository consuming this workflow:
4+
# - PAGES_ORGANIZATION: the target organization to publish
5+
# pages to.
6+
# - PAGES_ACCESS_TOKEN: a token that is valid in the target
7+
# org/repo for pushing the resulting site
8+
# - PAGES_REPOSITORY: optional repository name under the
9+
# target organization. Defaults to source repo name.
10+
111
name: pages
212
on:
313
workflow_dispatch:
414
push:
515
branches:
616
- main
717
- pages
18+
- docs
819

920
env:
1021
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }}
@@ -13,7 +24,23 @@ env:
1324
jobs:
1425
gh-pages:
1526
runs-on: ubuntu-latest
27+
env:
28+
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }}
29+
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }}
30+
PAGES_ACCESS_TOKEN: ${{ secrets.PAGES_ACCESS_TOKEN }}
1631
steps:
32+
- name: ✅ organization
33+
if: env.PAGES_ORGANIZATION == ''
34+
run: |
35+
echo "::error title=PAGES_ORGANIZATION secret is required."
36+
exit 1
37+
38+
- name: ✅ token
39+
if: env.PAGES_ACCESS_TOKEN == ''
40+
run: |
41+
echo "::error title=PAGES_ACCESS_TOKEN secret is required."
42+
exit 1
43+
1744
- name: 🤘 checkout
1845
uses: actions/checkout@v2
1946

@@ -22,14 +49,6 @@ jobs:
2249
sudo gem install bundler
2350
bundle install
2451
25-
- name: 🖉 default env
26-
env:
27-
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }}
28-
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }}
29-
run: |
30-
echo "PAGES_ORGANIZATION=${PAGES_ORGANIZATION}" >> $GITHUB_ENV
31-
echo "PAGES_REPOSITORY=${PAGES_REPOSITORY}" >> $GITHUB_ENV
32-
3352
- name: 🖉 default repo
3453
if: env.PAGES_REPOSITORY == ''
3554
run: echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
@@ -44,14 +63,14 @@ jobs:
4463
cd _site
4564
git init
4665
git add -A
47-
git config --local user.email "bot@devlooped.com"
48-
git config --local user.name "bot@devlooped.com"
66+
git config --local user.email "bot@clarius.org"
67+
git config --local user.name "bot@clarius.org"
4968
git commit -m "Publish pages from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
5069
5170
- name: 🚀 push
5271
uses: ad-m/github-push-action@v0.6.0
5372
with:
54-
github_token: ${{ secrets.PAGES_ACCESS_TOKEN }}
73+
github_token: ${{ env.PAGES_ACCESS_TOKEN }}
5574
repository: ${{ env.PAGES_ORGANIZATION }}/${{ env.PAGES_REPOSITORY }}
5675
branch: gh-pages
5776
force: true

.github/workflows/publish.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ jobs:
2121
submodules: recursive
2222
fetch-depth: 0
2323

24-
- name: ⚙ dotnet
25-
uses: actions/setup-dotnet@v1
26-
with:
27-
dotnet-version: '6.0.x'
28-
2924
- name: 🙏 build
3025
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
3126

.github/workflows/release-notes.yml

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

0 commit comments

Comments
 (0)