Skip to content

Commit 006c828

Browse files
committed
Option name
make it clear that this is just for `nuget restore` not nuget in general
1 parent a17efc2 commit 006c828

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/actions/compile/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ inputs:
3636
default: ${{ github.workspace }}
3737
description: the working directory to run in
3838

39-
use-nuget:
40-
default: false
39+
use-nuget-restore:
40+
default: 'false'
4141
description: >
4242
Set to true if your project uses a packages.config file instead of packagereferences. Ensure the environment has
4343
nuget and mono installed, either installing them manually or by using the Github Ubuntu-22.04 images
@@ -74,13 +74,13 @@ runs:
7474
7575
- name: Restore Mod Solution
7676
shell: bash
77-
if: ${{ inputs.use-nuget != 'true'}} # https://github.com/actions/runner/issues/1483 :sufferbeale:
77+
if: ${{ inputs.use-nuget-restore != 'true'}} # https://github.com/actions/runner/issues/1483 :sufferbeale:
7878
working-directory: ${{ inputs.working-directory }}
7979
run: dotnet restore ${{ inputs.solution-file-path }} ${{ runner.debug && '-v:diagnostic' }}
8080

8181
- name: Restore Mod Solution (NuGet)
8282
shell: bash
83-
if: ${{ inputs.use-nuget == 'true'}}
83+
if: ${{ inputs.use-nuget-restore == 'true'}}
8484
working-directory: ${{ inputs.working-directory }}
8585
run: nuget restore ${{ inputs.solution-file-path }} -Verbosity detailed
8686

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
description: >
2323
If MSBuild should be used. If your mod has no msbuild project (e.g. a pure part mod)
2424
you should set this to false
25-
use-nuget:
25+
use-nuget-restore:
2626
type: boolean
2727
default: false
2828
description: >
@@ -43,7 +43,7 @@ defaults:
4343

4444
jobs:
4545
build:
46-
runs-on: ${{ inputs.use-nuget && 'ubuntu-22.04' || 'ubuntu-24.04' }}
46+
runs-on: ${{ inputs.use-nuget-restore && 'ubuntu-22.04' || 'ubuntu-24.04' }}
4747
steps:
4848
- name: Checkout Mod Repo
4949
uses: actions/checkout@v4
@@ -68,7 +68,7 @@ jobs:
6868
ksp-zip-url: ${{ inputs.ksp-zip-url }}
6969
ksp-zip-password: ${{ secrets.ksp-zip-password }}
7070
solution-file-path: ${{ inputs.solution-file-path }}
71-
use-nuget: ${{ inputs.use-nuget }}
71+
use-nuget-restore: ${{ inputs.use-nuget-restore }}
7272

7373
# Assemble the mod into a release package and upload it as an artifact
7474
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@main

.github/workflows/internal-test-plugin-legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
ksp-zip-url: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
2121
working-directory: ${{ env.TESTDIR }}
22-
use-nuget: true
22+
use-nuget-restore: true
2323

2424
- uses: ./.github/actions/assemble-release
2525
with:

0 commit comments

Comments
 (0)