Skip to content

Commit

Permalink
Add script for workflow version increment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Jan 4, 2023
1 parent 67e4176 commit 9612cf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -647,5 +647,10 @@ task updateVersion {
}
}
ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true)
ant.replaceregexp(match: 'OPENSEARCH_VERSION: .*', replace: 'OPENSEARCH_VERSION: ' + newVersion, flags:'g', byline:true){
fileset(dir: projectDir) {
include(name: ".github/workflows/plugin_install.yml")
}
}
}
}

0 comments on commit 9612cf0

Please sign in to comment.