From e262cd67ed1365c5b5eee78812fede896e4bfff4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:00:28 +1100 Subject: [PATCH] [main] Add workflow for automatic SDK updates (#4887) * Add workflow for automatic SDK updates * Update update-sdk.yml --------- Co-authored-by: William Godbe --- .github/workflows/update-sdk.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update-sdk.yml diff --git a/.github/workflows/update-sdk.yml b/.github/workflows/update-sdk.yml new file mode 100644 index 00000000000..3097d82f336 --- /dev/null +++ b/.github/workflows/update-sdk.yml @@ -0,0 +1,27 @@ +name: update-dotnet-sdk + +on: + + # Scheduled trigger to check for .NET SDK updates at 12 UTC every Monday + schedule: + - cron: '00 12 * * MON' + + # Manual trigger to update the .NET SDK on-demand. + workflow_dispatch: + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + update-dotnet-sdk: + name: Update .NET SDK + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: martincostello/update-dotnet-sdk@31f3d5a6c2c4a5a0b7eb0e0d5c30501925d6e790 + with: + quality: 'daily' + repo-token: ${{ secrets.GITHUB_TOKEN }} + branch-name: dev