Skip to content

Commit

Permalink
Make sure mirror version branching only enabled for jdk(head)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Jun 17, 2024
1 parent c24d77c commit 58459c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion skaraMirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,15 @@ GITHUB_REPO="$1"
REPO=${2:-"[email protected]:adoptium/$GITHUB_REPO"}
BRANCH=${BRANCH:=master}

if [[ "${BRANCH}" == "master" ]]; then
# Does this OpenJDK repo support verion branching?
VERSION_BRANCHING=false

# jdk(head) is only repository currently supporting version branches
if [[ "${GITHUB_REPO}" == "jdk" ]]; then
VERSION_BRANCHING=true
fi

if [[ "${VERSION_BRANCHING}" == false ]] || [[ "${BRANCH}" == "master" ]]; then
RELEASE_BRANCH="release"
DEV_BRANCH="dev"
else
Expand Down

0 comments on commit 58459c0

Please sign in to comment.