Skip to content

update packages

update packages #221

Workflow file for this run

name: update packages
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * MON' # At 00:00, only on Monday
push:
paths:
- 'tools/Build/.config/dotnet-tools.json'
jobs:
update-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- name: Checkout main
uses: actions/checkout@v4
if: github.event_name == 'schedule'
with:
ref: main
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x.x
- name: Update packages
if: github.event_name == 'push'
run: dotnet run -- update-packages --parallel
working-directory: tools/Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update packages and create PR
if: github.event_name == 'schedule'
run: dotnet run -- create-update-pr --parallel
working-directory: tools/Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}