From 1cc5d90f58b57353ef375512fe337795b8f11ebe Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Thu, 11 Jan 2024 14:07:44 +0800 Subject: [PATCH] fix(workflow): paths-filter error on push event run checkout action before paths-filter Signed-off-by: Yulong Ruan --- .../cypress-workflow-bundle-snapshot-based-windows.yml | 2 ++ .github/workflows/cypress-workflow-bundle-snapshot-based.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml b/.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml index 2a8b82fdf..924042a60 100644 --- a/.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml +++ b/.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml @@ -11,9 +11,11 @@ jobs: outputs: tests: ${{ steps.filter.outputs.tests }} steps: + - uses: actions/checkout@v2 - uses: dorny/paths-filter@v2 id: filter with: + base: ${{ github.ref }} filters: | tests: - 'cypress/**/core-opensearch-dashboards/**' diff --git a/.github/workflows/cypress-workflow-bundle-snapshot-based.yml b/.github/workflows/cypress-workflow-bundle-snapshot-based.yml index b1038c86d..351c19b1d 100644 --- a/.github/workflows/cypress-workflow-bundle-snapshot-based.yml +++ b/.github/workflows/cypress-workflow-bundle-snapshot-based.yml @@ -11,9 +11,11 @@ jobs: outputs: tests: ${{ steps.filter.outputs.tests }} steps: + - uses: actions/checkout@v2 - uses: dorny/paths-filter@v2 id: filter with: + base: ${{ github.ref }} filters: | tests: - 'cypress/**/core-opensearch-dashboards/**'