Skip to content

Commit

Permalink
Merge pull request #2 from zshel/master
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ authored Mar 11, 2022
2 parents 5b4106d + e30ea2e commit 8459a28
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/publishr/publishr.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ func main() {
Action: func(c *cli.Context) error {

configuration, _ := config.Create()
configuration.Set(config.PACKAGR_SCM, c.String("scm"))
configuration.Set(config.PACKAGR_PACKAGE_TYPE, c.String("package_type"))

if c.IsSet("scm") {
configuration.Set(config.PACKAGR_SCM, c.String("scm"))
}
if c.IsSet("package_type") {
configuration.Set(config.PACKAGR_PACKAGE_TYPE, c.String("package_type"))
}
if c.IsSet("local_branch") {
configuration.Set(config.PACKAGR_SCM_LOCAL_BRANCH, c.String("local_branch"))
}
Expand Down Expand Up @@ -107,7 +111,7 @@ func main() {
Usage: "When dry run is enabled, no data is written to file system",
},
&cli.StringSliceFlag{
Name: "upload_artifact",
Name: "upload_artifact",
Usage: "Path to a release artifact(s). Can be called multiple times. Use [FILE_PATH]:[UPLOADED_FILE_NAME] syntax to override destination file name",
},
},
Expand Down

0 comments on commit 8459a28

Please sign in to comment.