From faf9a037dad6c550078a993072a5955e20e143a8 Mon Sep 17 00:00:00 2001 From: Brad Wood Date: Wed, 29 Jul 2020 22:39:31 -0500 Subject: [PATCH] Fix for Github Actions --- build/Build.cfc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/Build.cfc b/build/Build.cfc index f784b27..2340d38 100644 --- a/build/Build.cfc +++ b/build/Build.cfc @@ -54,7 +54,7 @@ component{ required projectName, version="1.0.0", buildID=createUUID(), - branch="development" + branch="refs/heads/development" ){ // Run the tests @@ -106,9 +106,9 @@ component{ required projectName, version="1.0.0", buildID=createUUID(), - branch="development" + branch="refs/heads/development" ){ - var fullVersion = version & ( arguments.branch == "master" ? '' : "-snapshot" ); + var fullVersion = version & ( arguments.branch == "refs/heads/master" ? '' : "-snapshot" ); // Build Notice ID print.line() @@ -144,8 +144,8 @@ component{ command( 'tokenReplace' ) .params( path = "/#variables.projectBuildDir#/**", - token = ( arguments.branch == "master" ? "@build.number@" : "+@build.number@" ), - replacement = ( arguments.branch == "master" ? arguments.buildID : "-snapshot" ) + token = ( arguments.branch == "refs/heads/master" ? "@build.number@" : "+@build.number@" ), + replacement = ( arguments.branch == "refs/heads/master" ? arguments.buildID : "-snapshot" ) ) .run(); @@ -168,7 +168,7 @@ component{ * Produce the API Docs */ function docs( required projectName, version="1.0.0", outputDir=".tmp/apidocs" ){ - var fullVersion = version & ( arguments.branch == "master" ? '' : "-snapshot" ); + var fullVersion = version & ( arguments.branch == "refs/heads/master" ? '' : "-snapshot" ); // Generate Docs print.greenLine( "Generating API Docs, please wait..." ).toConsole();