Skip to content

Commit 98d759e

Browse files
Update nbgv_dotnet_pack.yml
1 parent 5fc1c7c commit 98d759e

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

.github/workflows/nbgv_dotnet_pack.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,33 @@
11
name: nbgv_dotnet_pack
2+
23
on:
34
workflow_call:
45
inputs:
5-
build_configuration:
6-
description: "MSBuild configuration (Release, Develop, Debug …)"
7-
required: false
6+
# 🆕 caller chooses which commit / branch / tag to build
7+
checkout_ref:
8+
description: "Git ref to check out (branch, tag, or SHA)"
89
type: string
9-
default: "Release"
10+
default: ${{ github.ref }}
1011

11-
dotnet_version:
12-
description: ".NET SDK channel"
13-
required: false
12+
build_configuration:
1413
type: string
15-
default: "9.0.x"
14+
default: Release
1615

1716
push_after_pack:
18-
description: "Push the .nupkg to nuget_source?"
19-
required: false
2017
type: boolean
2118
default: false
2219

23-
nuget_source:
24-
description: "Feed URL"
25-
required: false
26-
type: string
27-
default: "https://api.nuget.org/v3/index.json"
28-
2920
force_dev_prerelease:
30-
description: "Force -dev prerelease tag even on main/release branches"
31-
required: false
3221
type: boolean
3322
default: false
3423

24+
nuget_source:
25+
type: string
26+
default: https://api.nuget.org/v3/index.json
27+
3528
secrets:
3629
NUGET_API_KEY:
37-
description: "API key for nuget_source (needed if push_after_pack=true)"
3830
required: false
39-
4031
jobs:
4132
build-pack:
4233
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)