Skip to content
check-square

GitHub Action

Ensure NuGet Source

v1 Latest version

Ensure NuGet Source

check-square

Ensure NuGet Source

Ensures NuGet set up source in runner environment is correct and enabled

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Ensure NuGet Source

uses: fabriciomurta/ensure-nuget-source@v1

Learn more about this action in fabriciomurta/ensure-nuget-source

Choose a version

Ensure NuGet Source

This action ensures NuGet is set up to the public NuGet sources URL or a specified url/path passed in.

By default it uses nuget.org as the source name and https://api.nuget.org/v3/index.json as the source URL/path.

Usage

- uses: fabriciomurta/ensure-nuget-source@v1
  with:
    # The name that should be used when adding the source if not present.
    # The action will check if the name exists; if it does, then its url/path
    # is updated to point to the desired URL value.
    name: 'nuget.org'

    # The url that should be present and enabled in the source list. If not
    # present, will be added. If present and disabled, enabled.
    url: 'https://api.nuget.org/v3/index.json'

License

The scripts and documentation in this project are released under the MIT License