Skip to content

Commit d8147e9

Browse files
committed
ci: fix GitHub Actions for .NET 10 and release-drafter
- Add setup-dotnet step to codeql-analysis.yml for .NET 10.0.x - Split release-drafter.yml into config (.github/) and workflow (.github/workflows/) - Fix 'label' typo to 'labels' in Maintenance category config
1 parent a2d8163 commit d8147e9

3 files changed

Lines changed: 26 additions & 28 deletions

File tree

.github/release-drafter.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
name: Release Drafter
2-
3-
on:
4-
push:
5-
# branches to consider in the event; optional, defaults to all
6-
branches:
7-
- main
8-
9-
permissions:
10-
contents: read
11-
121
categories:
13-
142
- title: '🚀 Enhancements'
153
labels:
164
- feature
@@ -24,7 +12,7 @@ categories:
2412
- bugfix
2513
- bug
2614
- title: '🧰 Maintenance'
27-
label:
15+
labels:
2816
- chore
2917

3018
template: |
@@ -42,18 +30,3 @@ template: |
4230
4331
exclude-labels:
4432
- skip-changelog
45-
46-
jobs:
47-
update_release_draft:
48-
permissions:
49-
# write permission is required to create a github release
50-
contents: write
51-
# write permission is required for autolabeler
52-
# otherwise, read permission is required at least
53-
pull-requests: write
54-
runs-on: ubuntu-latest
55-
steps:
56-
# Drafts your next Release notes as Pull Requests are merged into "master"
57-
- uses: release-drafter/release-drafter@v6
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
- name: Checkout repository
2828
uses: actions/checkout@v4
2929

30+
- name: Setup .NET 10.0
31+
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a
32+
with:
33+
dotnet-version: 10.0.x
34+
3035
# Initializes the CodeQL tools for scanning.
3136
- name: Initialize CodeQL
3237
uses: github/codeql-action/init@v3
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update_release_draft:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@v6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)