Skip to content

Commit f801f91

Browse files
authored
Merge branch 'master' into fix-security-issues-2605
2 parents 6308e6e + 84ef12d commit f801f91

4 files changed

Lines changed: 1489 additions & 5 deletions

File tree

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ String gitVersion() {
5353
return r==0 ? p.text.trim() : '(unknown)'
5454
}
5555

56+
String gitBranch() {
57+
def fromCI = System.env.GITHUB_REF_NAME
58+
if( fromCI ) return fromCI.trim()
59+
def p = new ProcessBuilder() .command('sh','-c','git rev-parse --abbrev-ref HEAD') .start()
60+
def r = p.waitFor()
61+
def out = r==0 ? p.text.trim() : ''
62+
return (out && out != 'HEAD') ? out : '(unknown)'
63+
}
64+
5665
group = 'io.nextflow'
5766
version = rootProject.file('VERSION').text.trim()
5867
ext.commitId = gitVersion()

0 commit comments

Comments
 (0)