From c20fbe3da9e8816ff540735bbeafbf1f7fdb507d Mon Sep 17 00:00:00 2001 From: andreaangiolillo Date: Fri, 3 Nov 2023 14:22:54 +0000 Subject: [PATCH] fix based on https://github.com/dorny/paths-filter/issues/183 --- .github/workflows/acceptance-tests.yml | 2 ++ .github/workflows/migration-tests.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index ab7e6a3b6e..6fd8c1a839 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -40,6 +40,8 @@ jobs: - uses: dorny/paths-filter@v2 id: filter with: + base: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }} + ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }} filters: | assume_role: - 'mongodbatlas/**provider**.go' diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml index 888e1f90af..06ed9d62db 100644 --- a/.github/workflows/migration-tests.yml +++ b/.github/workflows/migration-tests.yml @@ -28,6 +28,8 @@ jobs: - uses: dorny/paths-filter@v2 id: filter with: + base: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }} + ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }} filters: | project: - 'mongodbatlas/fw_data_source_mongodbatlas_project_ip_access_list*.go'