Skip to content

Commit 725c86e

Browse files
alafanecherejatinyadav-cc
authored andcommitted
gradle.yml: fix path filters (airbytehq#35554)
1 parent 1d64ac2 commit 725c86e

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/gradle.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,26 @@ on:
2222
jobs:
2323
changes:
2424
runs-on: ubuntu-latest
25+
outputs:
26+
java: ${{ steps.changes.outputs.java }}
27+
python_cdk: ${{ steps.changes.outputs.python_cdk }}
28+
2529
steps:
26-
- name: Checkout Airbyte
27-
uses: actions/checkout@v3
28-
- name: Get changed files
29-
uses: tj-actions/changed-files@v39
30-
id: changes
30+
- id: changes
31+
uses: dorny/paths-filter@v2
3132
with:
32-
files_yaml: |
33-
gradlecheck:
33+
# Note: expressions within a filter are OR'ed
34+
filters: |
35+
java:
3436
- '**/*.java'
3537
- '**/*.gradle'
3638
- 'airbyte-cdk/java/**/*'
37-
outputs:
38-
gradle: ${{ steps.changes.outputs.gradlecheck_any_changed }}
39-
39+
python_cdk:
40+
- 'airbyte-cdk/python/**/*'
4041
run-check:
4142
needs:
4243
- changes
43-
if: needs.changes.outputs.gradle == 'true'
44+
if: needs.changes.outputs.java == 'true'
4445
# The gradle check task which we will run is embarrassingly parallelizable.
4546
# We therefore run this on a machine with a maximum number of cores.
4647
# We pay per time and per core, so there should be little difference in total cost.

0 commit comments

Comments
 (0)