Skip to content

Commit 30455e0

Browse files
committed
Various improvements on build pipeline.
1 parent 4b2723b commit 30455e0

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/action.yml renamed to .github/workflows/assign.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
---
2-
# yamllint disable-line rule:truthy
3-
name: 'Auto Assign'
1+
name: Assign
42
on: pull_request_target
5-
63
jobs:
74
add-reviews:
85
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
name: Releases
2-
1+
name: Release
32
on:
43
push:
54
tags:
65
- '*'
7-
6+
branches:
7+
- master
88
jobs:
9-
109
build:
1110
runs-on: ubuntu-latest
1211
steps:
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Test
2-
on: pull_request
3-
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
49
jobs:
510
build:
611
runs-on: ubuntu-latest
7-
812
steps:
913
- name: Checkout source code
1014
uses: actions/checkout@v2
1115
- name: Set up JDK 11.0.11
1216
uses: actions/setup-java@v1
1317
with:
14-
java-version: 11.0.8
18+
java-version: 11.0.11
1519
- name: Run with Gradle
1620
run: ./gradlew clean test --info

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ext.installSrcDir = "${userHome}/.sdkman/src"
1212
ext.installContribDir = "${userHome}/.sdkman/contrib"
1313

1414
ext.environment = hasProperty('env') ? env : 'local'
15-
ext.hash = hasProperty('hash') ? hash : 'hash'
15+
ext.hash = hasProperty('hash') ? hash : 'hashme'
1616
ext.release = hasProperty('release') ? release : 'master'
1717
ext.candidatesApi = ext.environment == 'production' ? 'https://api.sdkman.io/2' : 'http://localhost:8080/2'
1818

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = "sdkman"
1+
rootProject.name = "sdkman-cli"

0 commit comments

Comments
 (0)