1
0
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:
Anil Keshav 2022-07-11 12:08:31 +02:00 committed by GitHub
parent c3b4925f0b
commit 4c4f8e3e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ func runGithubPublishRelease(ctx context.Context, config *githubPublishReleaseOp
//updating assets only supported on latest release
if len(config.AssetPath) > 0 && config.Version == "latest" {
return uploadReleaseAsset(ctx, lastRelease.GetID(), config, ghRepoClient)
} else if len(config.AssetPathList) > 0 && config.Version == "latest" {
return uploadReleaseAssetList(ctx, lastRelease.GetID(), config, ghRepoClient)
}
releaseBody := ""