chore: Dotnet tools are now installed locally

spectre-console-remove-di-hacks
Robert Dailey 5 months ago
parent 38338cbe38
commit 7d0d360abb

@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"gitversion.tool": {
"version": "5.12.0",
"commands": [
"dotnet-gitversion"
]
},
"dotnet-sonarscanner": {
"version": "6.0.0",
"commands": [
"dotnet-sonarscanner"
]
}
}
}

@ -43,9 +43,7 @@ jobs:
dotnet-version: ${{ env.dotnetVersion }}
- name: Install Tooling
run: |
dotnet tool install --global dotnet-sonarscanner
dotnet tool install --global GitVersion.Tool
run: dotnet tool restore
- name: Perform Scan
run: pwsh ci/RunSonarScan.ps1 -SonarToken "${{ secrets.SONAR_TOKEN }}"

@ -6,7 +6,7 @@ param (
[switch] $Details
)
$version = $(dotnet-gitversion /showvariable semver)
$version = $(dotnet gitversion /showvariable semver)
if ($LASTEXITCODE -ne 0) { throw "Failed: dotnet gitversion" }
$beginArgs = @(

@ -1,3 +1,2 @@
dotnet tool update --global GitVersion.Tool
dotnet tool restore
Install-Module -Force -Name ChangelogManagement
dotnet tool update --global dotnet-sonarscanner

@ -5,7 +5,7 @@ param (
$ErrorActionPreference = "Stop"
$version = if ($Version) { $Version } else { dotnet-gitversion /showvariable SemVer }
$version = if ($Version) { $Version } else { dotnet gitversion /showvariable SemVer }
Update-Changelog -ReleaseVersion $version -LinkMode Automatic -LinkPattern @{
FirstRelease = "https://github.com/recyclarr/recyclarr/releases/tag/v{CUR}"

Loading…
Cancel
Save