Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

Commit c12b854

Browse files
fix #37 to respect --skip-duplicates flag
1 parent 108c10b commit c12b854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Action {
6464
const packages = fs.readdirSync(".").filter(fn => fn.endsWith("nupkg"))
6565
console.log(`Generated Package(s): ${packages.join(", ")}`)
6666

67-
const pushCmd = `dotnet nuget push *.nupkg -s ${this.nugetSource}/v3/index.json -k ${this.nugetKey} ${!this.includeSymbols ? "--no-symbols" : ""} --skip-duplicate`,
67+
const pushCmd = `dotnet nuget push *.nupkg -s ${this.nugetSource}/v3/index.json -k ${this.nugetKey} --skip-duplicate ${!this.includeSymbols ? "-n 1" : ""}`,
6868
pushOutput = this._executeCommand(pushCmd, { encoding: "utf-8" }).stdout
6969

7070
console.log(pushOutput)

0 commit comments

Comments
 (0)