Skip to content

Commit

Permalink
fix(workflow): paths-filter error on push event
Browse files Browse the repository at this point in the history
run checkout action before paths-filter

Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl committed Jan 30, 2024
1 parent 98ec499 commit 1cc5d90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cypress-workflow-bundle-snapshot-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand Down

0 comments on commit 1cc5d90

Please sign in to comment.