Skip to content

Commit

Permalink
gradle.yml: fix path filters (airbytehq#35554)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored and jatinyadav-cc committed Feb 26, 2024
1 parent 1d64ac2 commit 725c86e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@ on:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
java: ${{ steps.changes.outputs.java }}
python_cdk: ${{ steps.changes.outputs.python_cdk }}

steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
- name: Get changed files
uses: tj-actions/changed-files@v39
id: changes
- id: changes
uses: dorny/paths-filter@v2
with:
files_yaml: |
gradlecheck:
# Note: expressions within a filter are OR'ed
filters: |
java:
- '**/*.java'
- '**/*.gradle'
- 'airbyte-cdk/java/**/*'
outputs:
gradle: ${{ steps.changes.outputs.gradlecheck_any_changed }}

python_cdk:
- 'airbyte-cdk/python/**/*'
run-check:
needs:
- changes
if: needs.changes.outputs.gradle == 'true'
if: needs.changes.outputs.java == 'true'
# The gradle check task which we will run is embarrassingly parallelizable.
# We therefore run this on a machine with a maximum number of cores.
# We pay per time and per core, so there should be little difference in total cost.
Expand Down

0 comments on commit 725c86e

Please sign in to comment.