Skip to content

Commit e32b035

Browse files
Add .NET SDK update workflow
Add a GitHub Actions workflow that patches the .NET SDK and ASP.NET Core NuGet packages every month.
1 parent 5c723a6 commit e32b035

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: update-dotnet-sdk
2+
3+
on:
4+
schedule:
5+
- cron: '00 19 * * TUE'
6+
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: 'The branch to run the SDK updates for.'
10+
required: false
11+
type: choice
12+
options:
13+
- 'dev'
14+
- 'dev-v9'
15+
default: 'dev'
16+
17+
permissions:
18+
contents: read
19+
pull-requests: read
20+
21+
jobs:
22+
update-sdk:
23+
name: Update .NET SDK
24+
uses: martincostello/update-dotnet-sdk/.github/workflows/update-dotnet-sdk.yml@9d42ad9bcbd97a74394c7273c9c616b4bf136b53 # v3.1.3
25+
permissions:
26+
contents: write
27+
pull-requests: write
28+
with:
29+
labels: 'dependencies,.NET'
30+
ref: ${{ inputs.branch || 'dev' }}
31+
update-nuget-packages: true
32+
user-email: ${{ vars.SERVICE_ACCOUNT_GIT_EMAIL }}
33+
user-name: ${{ vars.SERVICE_ACCOUNT_GIT_NAME }}
34+
secrets:
35+
application-id: ${{ secrets.SERVICE_ACCOUNT_ID }}
36+
application-private-key: ${{ secrets.SERVICE_ACCOUNT_PRIVATE_KEY }}

0 commit comments

Comments
 (0)