DEV Community

Cover image for Automatic Updates Nuget Package with Dependabot when using Github - Part 1
Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on

6 3

Automatic Updates Nuget Package with Dependabot when using Github - Part 1

It's easy to set up if you don't have dependencies that hosted at private NuGet. You only need to add file at .github/dependabot.yml.

The file will looks like this.

version: 2
updates:
- package-ecosystem: nuget
  directory: "/"
  schedule:
    interval: daily
  open-pull-requests-limit: 25
Enter fullscreen mode Exit fullscreen mode

Notes:

  • If you want to know more about Dependabot, you can visit the documentation here.

  • If you want to know how to setup the private registries for NuGet, you can check the documentation here.

Example Repo/File

If you want to check the file directly, you can visit here

GitHub logo bervProject / NETCoreAPIBoilerplate

Net Core Web API Boilerplate for My Project

NET Core API Boilerplate (BervProject.WebApi.Boilerplate)

Net Core Web API Boilerplate for My Project

.NET Version

8.0

Build Status
















Github Action Azure Pipelines Codecov
Build&Dockerize Build Status codecov

LICENSE

MIT

MIT License
Copyright (c) 2019 Bervianto Leo Pratama's Personal Projects

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND
Enter fullscreen mode Exit fullscreen mode

Finally

Yey, you're done. But, we won't stop here. The next part, I will discuss about the CI. Stay tune.

Stay tune GIF

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay