Skip to content

Automated Dependency Updates #98

Automated Dependency Updates

Automated Dependency Updates #98

name: Automated Dependency Updates
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
dependencies:
name: Update Dependencies
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
language: ["csharp"]
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.AUTOMATED_DEPENDENCY_UPDATES_TOKEN }}
- name: Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Update
id: update
uses: stphnwlsh/dotnet-outdated-action@v2
with:
excludes: visualstudio
- name: Test
id: test
if: ${{ steps.update.outputs.updated == 'true' }}
run: dotnet test -c Release -v minimal
- name: Push
id: push
if: ${{ steps.update.outputs.updated == 'true' }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_message: Automated Dependency Updates