Skip to content

Commit

Permalink
Update maven-build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Līga  <72249435+liga-oz@users.noreply.github.com>
  • Loading branch information
liga-oz committed Apr 25, 2023
1 parent 84de765 commit 12d4841
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@ name: Maven Build main

on:
push:
branches: [ main, main-2.x ]
branches: [ main ]
pull_request:
branches: [ main, main-2.x ]
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- java-version: 17
branch: main
- java-version: 8
branch: main-2.x
- java-version: 11
branch: main-2.x
if: ${{ endsWith( github.ref, matrix.branch ) }}
java-version: [ 17 ]
name: Build with Java ${{ matrix.java-version }}

steps:
Expand Down

0 comments on commit 12d4841

Please sign in to comment.