diff --git a/.github/workflows/ansible-lint.yaml b/.github/workflows/ansible-lint.yaml index adb3c9c5da..32c4a0c875 100644 --- a/.github/workflows/ansible-lint.yaml +++ b/.github/workflows/ansible-lint.yaml @@ -17,10 +17,18 @@ jobs: outputs: matches: ${{ steps.filter.outputs.matches }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # important, to fetch previous commit + + # workaround for https://github.com/dorny/paths-filter/issues/240 + - id: previous-sha + run: 'echo "sha=$(git rev-list -n 1 ${{ github.ref }}^)" >> $GITHUB_OUTPUT' + - uses: dorny/paths-filter@v3 id: filter with: - base: ${{ github.ref }} + base: "${{ steps.previous-sha.outputs.sha }}" filters: | matches: - 'ansible/**' diff --git a/.github/workflows/backend-lint.yaml b/.github/workflows/backend-lint.yaml index 3de89d17c4..6bcb34308f 100644 --- a/.github/workflows/backend-lint.yaml +++ b/.github/workflows/backend-lint.yaml @@ -17,10 +17,18 @@ jobs: outputs: matches: ${{ steps.filter.outputs.matches }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # important, to fetch previous commit + + # workaround for https://github.com/dorny/paths-filter/issues/240 + - id: previous-sha + run: 'echo "sha=$(git rev-list -n 1 ${{ github.ref }}^)" >> $GITHUB_OUTPUT' + - uses: dorny/paths-filter@v3 id: filter with: - base: ${{ github.ref }} + base: "${{ steps.previous-sha.outputs.sha }}" filters: | matches: - 'backend/**' diff --git a/.github/workflows/frontend-lint-test-build.yaml b/.github/workflows/frontend-lint-test-build.yaml index 52b69c4e88..5001f0d0f8 100644 --- a/.github/workflows/frontend-lint-test-build.yaml +++ b/.github/workflows/frontend-lint-test-build.yaml @@ -17,9 +17,18 @@ jobs: outputs: matches: ${{ steps.filter.outputs.matches }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # important, to fetch previous commit + + # workaround for https://github.com/dorny/paths-filter/issues/240 + - id: previous-sha + run: 'echo "sha=$(git rev-list -n 1 ${{ github.ref }}^)" >> $GITHUB_OUTPUT' + - uses: dorny/paths-filter@v3 id: filter with: + base: "${{ steps.previous-sha.outputs.sha }}" filters: | matches: - 'frontend/src/**' diff --git a/.github/workflows/k3d-ci.yaml b/.github/workflows/k3d-ci.yaml index 4f0825f99a..bd60d2468f 100644 --- a/.github/workflows/k3d-ci.yaml +++ b/.github/workflows/k3d-ci.yaml @@ -20,10 +20,18 @@ jobs: outputs: matches: ${{ steps.filter.outputs.matches }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # important, to fetch previous commit + + # workaround for https://github.com/dorny/paths-filter/issues/240 + - id: previous-sha + run: 'echo "sha=$(git rev-list -n 1 ${{ github.ref }}^)" >> $GITHUB_OUTPUT' + - uses: dorny/paths-filter@v3 id: filter with: - base: ${{ github.ref }} + base: "${{ steps.previous-sha.outputs.sha }}" filters: | matches: - 'backend/**' diff --git a/.github/workflows/weblate-reformat.yaml b/.github/workflows/weblate-reformat.yaml index 2113f81653..bf82d37ba7 100644 --- a/.github/workflows/weblate-reformat.yaml +++ b/.github/workflows/weblate-reformat.yaml @@ -13,9 +13,18 @@ jobs: outputs: matches: ${{ steps.filter.outputs.matches }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # important, to fetch previous commit + + # workaround for https://github.com/dorny/paths-filter/issues/240 + - id: previous-sha + run: 'echo "sha=$(git rev-list -n 1 ${{ github.ref }}^)" >> $GITHUB_OUTPUT' + - uses: dorny/paths-filter@v3 id: filter with: + base: "${{ steps.previous-sha.outputs.sha }}" filters: | matches: - 'frontend/xliff/**'