Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] Add workflow for automatic SDK updates #4887

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/update-sdk.yml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member

@martincostello martincostello Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wtgodbe This isn’t right - you need to tell the checkout action to clone the dev branch instead of telling this action to create a branch called dev.

I’ll add an example of this to my action’s README to make this clearer.