Skip to content

Commit

Permalink
Use GitHub action to update SDK
Browse files Browse the repository at this point in the history
Use GitHub action to update the .NET SDK instead of a PowerShell script.
  • Loading branch information
martincostello committed Nov 14, 2020
1 parent 35c02e3 commit da14c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 405 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/update-dotnet-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ on:
workflow_dispatch:

jobs:
build:
update-dotnet-sdk:
name: Update .NET SDK
runs-on: windows-latest
runs-on: ubuntu-latest

steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Update .NET SDK
shell: pwsh
run: ./update-dotnet-sdk.ps1 -Channel "5.0" -GitHubToken ${{ secrets.GITHUB_TOKEN }} -UserName "github-actions[bot]" -UserEmail "github-actions[bot]@users.noreply.github.com"
uses: martincostello/update-dotnet-sdk@v1
if: ${{ github.repository_owner == 'justeat' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit da14c95

Please sign in to comment.