File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,13 @@ name: Build a Branch Specific Snapshot
2
2
3
3
on :
4
4
workflow_dispatch :
5
- inputs :
6
- customSnap :
7
- description : ' Custom Snapshot Name'
8
- required : false
9
- type : string
10
5
11
6
jobs :
12
7
build :
13
8
runs-on : ubuntu-latest
14
9
env :
15
10
BUILD_EVENT : ${{ github.event_name }}
16
11
BRANCH_REF_NAME : ${{ github.ref_name }}
17
- CUSTOM_SNAPSHOT_NAME : ${{ inputs.customSnap }}
18
12
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
19
13
OSSRH_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
20
14
SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ plugins {
16
16
def jarVersion = " 2.17.7"
17
17
18
18
def isRelease = System . getenv(" BUILD_EVENT" ) == " release"
19
- def csn = System . getenv(" CUSTOM_SNAPSHOT_NAME" );
20
- def brn = csn == null || csn. equals(" " ) ? System . getenv(" BRANCH_REF_NAME" ) : csn
19
+ def brn = System . getenv(" BRANCH_REF_NAME" )
21
20
def snap = brn == null || brn. equals(" " ) ? " -SNAPSHOT" : " ." + brn + " -SNAPSHOT"
22
21
23
22
// version is the variable the build actually uses.
You can’t perform that action at this time.
0 commit comments