Skip to content

Commit 1907a43

Browse files
committed
Removed input for custom snapshot name, only works on main branch
1 parent f05af38 commit 1907a43

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/branch-snapshot.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@ name: Build a Branch Specific Snapshot
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
customSnap:
7-
description: 'Custom Snapshot Name'
8-
required: false
9-
type: string
105

116
jobs:
127
build:
138
runs-on: ubuntu-latest
149
env:
1510
BUILD_EVENT: ${{ github.event_name }}
1611
BRANCH_REF_NAME: ${{ github.ref_name }}
17-
CUSTOM_SNAPSHOT_NAME: ${{ inputs.customSnap }}
1812
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
1913
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2014
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ plugins {
1616
def jarVersion = "2.17.7"
1717

1818
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")
2120
def snap = brn == null || brn.equals("") ? "-SNAPSHOT" : "." + brn + "-SNAPSHOT"
2221

2322
// version is the variable the build actually uses.

0 commit comments

Comments
 (0)