Skip to content

Commit 585f0cc

Browse files
authored
Update java-build.yml
1 parent 6e3b5e6 commit 585f0cc

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

.github/workflows/java-build.yml

+2-25
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,21 @@ name: Build Java Semantic Kernel
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [ "main", "java-development" ]
8+
branches: [ "main" ]
99
paths:
1010
- 'java/**'
1111
pull_request:
12-
branches: [ "main", "java-development" ]
12+
branches: [ "main" ]
1313
paths:
1414
- 'java/**'
1515

1616
permissions:
1717
contents: read
1818

1919
jobs:
20-
# Determines if Java files have changed
21-
paths-filter:
22-
runs-on: ubuntu-latest
23-
outputs:
24-
javaChanges: ${{ steps.filter.outputs.java }}
25-
steps:
26-
- uses: actions/checkout@v4
27-
- uses: dorny/paths-filter@v2
28-
id: filter
29-
with:
30-
filters: |
31-
java:
32-
- 'java/**'
33-
- '**/java/**'
34-
- name: java tests
35-
if: steps.filter.outputs.java == 'true'
36-
run: echo "Java file"
37-
- name: not java tests
38-
if: steps.filter.outputs.java != 'true'
39-
run: echo "NOT java file"
40-
4120
# Builds and tests the Java project
4221
java-build:
4322
runs-on: ubuntu-latest
44-
needs: paths-filter
45-
if: needs.paths-filter.outputs.javaChanges == 'true'
4623
strategy:
4724
fail-fast: false
4825
matrix:

0 commit comments

Comments
 (0)