Skip to content

timheuer/bootstrap-dotnet

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-dotnet

This is a GitHub Action meant to be used as a composite action within an existing workflow. This action encapsulates setting up .NET SDK, MSBuild path (on Windows only), and NuGet CLI in one step. Each is optional, but I'd argue if you are only using one of these then just use the actual action.

The action encapsulates the following other actions:

Usage

You can use this composite Action in your own workflow by adding:

on: [push]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:
      - uses: actions/checkout@v4
      - id: foo
        uses: timheuer/bootstrap-dotnet@v2
        with:
          dotnet-version: 8.0.x
      - run: echo random-number ${{ steps.foo.outputs.random-number }}
        shell: bash

Defaults

This action uses the following defaults:

  • dotnet-version: 8.0.x
  • MSBuild: latest (meaning the latest version installed on an agent)
  • NuGet: latest (meaning the latest CLI version)
  • VSTest: false (meaning VSTest.Console is not setup for you)

Options

You can disable any step of these by opting out in your usage.

Example, to skip NuGet setup

on: [push]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:
      - uses: actions/checkout@v4
      - id: foo
        uses: timheuer/bootstrap-dotnet@v2
        with:
          dotnet-version: 8.0.x
          nuget: 'false'
      - run: echo random-number ${{ steps.foo.outputs.random-number }}
        shell: bash

About

This is a GitHub Action meant to be used as a composite action for setting up relevant other .NET actions (MSBuild, SDK, NuGet)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors