Dotnet Outdated - Install and Update

stphnwlsh

Stephen Walsh

Posted on November 27, 2021

Dotnet Outdated - Install and Update

My Workflow

Dotnet Outdated Action

This action installs the dotnet outdated dotnet tool and then attempts to update any NuGet packages that are available.

Inputs

location

The location of the solution or project that needs to be checked for dependency updates. Default "".

For more information review the Specifying the Path documentation on the dotnet outdated GitHub

includes

A comma separated list of inputs to use to limit packages being analysed to ones including those values. Default "".

DO NOT INCLUDE SPACES - this will break the step and cause your pipeline to fail.

The following example will only include packages with the word 'microsoft' in their name, regardless of casing.

with
  includes: microsoft
Enter fullscreen mode Exit fullscreen mode

This example will only include packages with the words 'microsoft' and 'automapper' in their name.

with:
  includes: microsoft,automapper
Enter fullscreen mode Exit fullscreen mode

For more information review the Includes and Excludes documentation on the dotnet outdated GitHub

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

https://github.com/stphnwlsh/CleanGraphQLApi/blob/main/.github/workflows/dependency-updates.yml

GitHub logo stphnwlsh / CleanGraphQLApi

A template for an API using Clean Architecture and GraphQL.net.

Clean GraphQL API

GitHub Workflow Status Codecov Nuget

This is a template API using Clean Architecture alongside a .net implementation of GraphQL.

Prerequisites

This solution in built on the .net 6 SDK, you need to install that before it will work for you. If you want to build the Dockerfile you will need to install Docker as well.

Installation

This is a template and you can install it using the dotnet new cli. To install the lastest version of the template run the following command.

dotnet new --install CleanGraphQLApi.Template
Enter fullscreen mode Exit fullscreen mode

To create a new solution using this template run the following command

dotnet new cleangraphqlapi --name {YOUR_SOLUTION_NAMESPACE} --au "{YOU_AUTHORS_NAME}"
Enter fullscreen mode Exit fullscreen mode

Docker

There's a dockerfile included in the build folder and serves the purpose of restoring, building, testing, publishing and then creating a runtime image of the API. Works on my machine.....you can add a version prefix and suffix to version the service…

Additional Resources / Info

https://github.com/stphnwlsh/CleanGraphQLApi
https://github.com/stphnwlsh/CleanMinimalApi
https://github.com/stphnwlsh/SimpleDateTimeProvider

💖 💪 🙅 🚩
stphnwlsh
Stephen Walsh

Posted on November 27, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Label automation at your fingertips
actionshackathon21 Label automation at your fingertips

December 8, 2021

Releasing the funniest GitHub Action & Workflow
actionshackathon21 Releasing the funniest GitHub Action & Workflow

December 9, 2021

The Gatsby Changelog Prototype
actionshackathon21 The Gatsby Changelog Prototype

December 7, 2021