-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
37 lines (33 loc) · 1 KB
/
update-dotnet-sdk.yml
File metadata and controls
37 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: update-dotnet-sdk
on:
schedule:
- cron: '0 10 * * WED'
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
update-dotnet-sdk:
uses: martincostello/update-dotnet-sdk/.github/workflows/update-dotnet-sdk.yml@7f7b459c48652a0e24f154bbe6dc16a5c7409b1b # v5.0.2
permissions:
contents: write
pull-requests: write
with:
labels: 'dependencies,.NET'
update-nuget-packages: false
secrets:
repo-token: ${{ secrets.GITHUB_TOKEN }}
add-security-label:
needs: update-dotnet-sdk
permissions:
pull-requests: write
runs-on: ubuntu-latest
if : |
needs.update-dotnet-sdk.outputs.sdk-updated =='true' &&
needs.update-dotnet-sdk.outputs.security == 'true'
steps:
- name: Add security label
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ needs.update-dotnet-sdk.outputs.pull-request-html-url }}
run: gh pr edit "${PR_URL}" --add-label security