Skip to content

Commit

Permalink
Fix for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Jul 30, 2020
1 parent 0a681c2 commit faf9a03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/Build.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ component{
required projectName,
version="1.0.0",
buildID=createUUID(),
branch="development"
branch="refs/heads/development"
){

// Run the tests
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -144,8 +144,8 @@ component{
command( 'tokenReplace' )
.params(
path = "/#variables.projectBuildDir#/**",
token = ( arguments.branch == "master" ? "@build.number@" : "[email protected]@" ),
replacement = ( arguments.branch == "master" ? arguments.buildID : "-snapshot" )
token = ( arguments.branch == "refs/heads/master" ? "@build.number@" : "[email protected]@" ),
replacement = ( arguments.branch == "refs/heads/master" ? arguments.buildID : "-snapshot" )
)
.run();

Expand All @@ -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();
Expand Down

0 comments on commit faf9a03

Please sign in to comment.