mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-30 05:59:39 +02:00
feat (githubPublishRelease) creating release with assestPathList (#3887)
* creating release with assestPathList * adding condition for version should be latest Co-authored-by: anilkeshav27 <you@example.com>
This commit is contained in:
parent
c3b4925f0b
commit
4c4f8e3e97
@ -62,6 +62,8 @@ func runGithubPublishRelease(ctx context.Context, config *githubPublishReleaseOp
|
|||||||
//updating assets only supported on latest release
|
//updating assets only supported on latest release
|
||||||
if len(config.AssetPath) > 0 && config.Version == "latest" {
|
if len(config.AssetPath) > 0 && config.Version == "latest" {
|
||||||
return uploadReleaseAsset(ctx, lastRelease.GetID(), config, ghRepoClient)
|
return uploadReleaseAsset(ctx, lastRelease.GetID(), config, ghRepoClient)
|
||||||
|
} else if len(config.AssetPathList) > 0 && config.Version == "latest" {
|
||||||
|
return uploadReleaseAssetList(ctx, lastRelease.GetID(), config, ghRepoClient)
|
||||||
}
|
}
|
||||||
|
|
||||||
releaseBody := ""
|
releaseBody := ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user