Skip to content

update-dotnet-sdk

update-dotnet-sdk #16

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@67d6e2b14939c06978a7f80444157296c3defe14 # v3.2.3
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 }}
run: gh pr edit "${{ needs.update-dotnet-sdk.outputs.pull-request-html-url }}" --add-label security