Open martincostello opened 8 months ago
I've run into this a number of times, and again just now. In my situation the repo is using full framework and a couple non-sdk style projects so I can't use dependabot on the projects, but I do want it on the local tools.
Is there an existing issue for this?
Feature description
I have a GitHub workflow that uses some .NET global tools to do things where the versions were pinned using environment variables. I had the idea that if I used a
.config/dotnet-tools.json
file to specify the versions instead, I could leverage dependabot to keep the tools up-to-date without me needing to manually bump the versions (see https://github.com/martincostello/github-automation/commit/64b1cd7dfcc01c8586fcffaa1799d04a1db619fc).However, it turns out that this won't work as-is because my repository doesn't contain any .NET code:
It would be beneficial to update the relevant code to support this scenario by checking for the presence of a
.config/dotnet-tools.json
file in the root of the repository so that the job does not bail-out early with an error.