Skip to content

Commit 8fd7307

Browse files
committed
fixup! Added running build with dev repository for kotlin-community/* branches
1 parent b6d125a commit 8fd7307

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ jobs:
3030
run: chmod +x gradlew
3131
- name: Setup Gradle
3232
uses: gradle/actions/setup-gradle@v4
33-
- name: Build with Gradle
34-
run: |
35-
if [[ "${{ github.ref }}" == "refs/heads/kotlin-community/*" ]]; then
36-
./gradlew build -Pkotlin_repo_url=https://redirector.kotlinlang.org/maven/dev
37-
else
38-
./gradlew build
39-
fi
33+
- name: Build with Gradle (kotlin-community)
34+
if: startsWith(github.ref, 'refs/heads/kotlin-community/')
35+
run: ./gradlew build -Pkotlin_repo_url=https://redirector.kotlinlang.org/maven/dev
36+
- name: Build with Gradle (default)
37+
if: "!startsWith(github.ref, 'refs/heads/kotlin-community/')"
38+
run: ./gradlew build

0 commit comments

Comments
 (0)