From 402eab8be63d7f34f547a4934299d7c12261c797 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 19 Oct 2024 20:56:28 +0200 Subject: [PATCH] Update common-tests.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/common-tests.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/common-tests.yaml b/.github/workflows/common-tests.yaml index a1e6b92a312..2871515ac62 100644 --- a/.github/workflows/common-tests.yaml +++ b/.github/workflows/common-tests.yaml @@ -23,21 +23,21 @@ jobs: check_changes: runs-on: ubuntu-latest + outputs: + changes_detected: ${{ steps.filter.outputs.changed }} steps: - name: Checkout code uses: actions/checkout@v2 - - name: Check for changes in specific folder - id: check_changes - run: | - if git diff --exit-code HEAD^ HEAD -- charts/library/common; then - echo "No changes detected in the folder." - echo "::set-output name=changes_detected::false" - else - echo "Changes detected in the folder." - echo "::set-output name=changes_detected::true" - fi + - name: Filter paths + id: filter + uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 + with: + list-files: json + filters: | + changed: + - 'charts/library/common/**' lint: name: Lint Common