File tree Expand file tree Collapse file tree
src/main/java/edu/harvard/iq/dataverse/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: 'Deploy to dataverse-internal.iq.harvard.edu'
33on :
44 workflow_dispatch :
55 inputs :
6- branch name :
7- description : Desired branch
6+ buildlabel :
7+ description : ' Custom label that will appear after the version number (the equivalent of the old "build number" entry). '
88 type : string
9- required : true
9+ required : false
1010
1111concurrency :
1212 group : deploy-to-internal
2424 distribution : ' zulu'
2525 java-version : ' 21'
2626
27- - name : Enable API Session Auth feature flag
28- working-directory : src/main/resources/META-INF
29- run : echo -e "dataverse.feature.api-session-auth=true" >> microprofile-config.properties
30-
3127 - name : Set build number
32- run : scripts/installer/custom-build-number
28+ run : scripts/installer/custom-build-number ${{ github.event.inputs.buildlabel }}
3329
3430 - name : Build application war
3531 run : mvn package
Original file line number Diff line number Diff line change 2121 java-version : ' 21'
2222
2323 - name : Set build number
24- run : scripts/installer/custom-build-number ${{ github.event.inputs.basepath }}
24+ run : scripts/installer/custom-build-number ${{ github.event.inputs.buildlabel }}
2525
2626 - name : Get branch name
2727 id : branch-name
Original file line number Diff line number Diff line change 11#! /bin/sh
22# Git changes workdir to root of repo per git documentation
33BRANCH_COMMIT=$( git rev-parse --abbrev-ref HEAD) -$( git log --oneline | head -1 | awk ' {print $1}' )
4- echo " build.number=$BRANCH_COMMIT " > src/main/java/BuildNumber.properties
4+ echo " build.number=build $BRANCH_COMMIT " > src/main/java/BuildNumber.properties
55
66# Based on https://stackoverflow.com/questions/25590267
77# $6 = previous branch, $8 is next branch
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public String getVersion(boolean withBuildNumber) {
125125 }
126126
127127 if (!buildNumber .equals ("" )) {
128- return appVersion + " build " + buildNumber ;
128+ return appVersion + " " + buildNumber ;
129129 }
130130 }
131131
You can’t perform that action at this time.
0 commit comments