Skip to content

Commit

Permalink
Fix workflow filters
Browse files Browse the repository at this point in the history
Fix error when empty filter received
  • Loading branch information
skhomuti committed Aug 11, 2022
1 parent 8a68913 commit f1d3682
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,28 @@ jobs:
id: filter
with:
filters: |
allure-behave: allure-behave/**
allure-nose2: allure-nose2/**
allure-pytest: allure-pytest/**
allure-pytest-bdd: allure-pytest-bdd/**
allure-behave:
- allure-behave/**
- allure-python-commons/**
- allure-python-commons-test/**
allure-nose2:
- allure-nose2/**
- allure-python-commons/**
- allure-python-commons-test/**
allure-pytest:
- allure-pytest/**
- allure-python-commons/**
- allure-python-commons-test/**
allure-pytest-bdd:
- allure-pytest-bdd/**
- allure-python-commons/**
- allure-python-commons-test/**
allure-robotframework:
- allure-robotframework/**
- allure-python-commons/**
- allure-python-commons-test/**
allure-python-commons: allure-python-commons/**
allure-python-commons-test: allure-python-commons-test/**
allure-robotframework: allure-robotframework/**
commons:
name: Build commons
Expand All @@ -47,6 +62,7 @@ jobs:
name: Static check
runs-on: ubuntu-latest
needs: [commons, changes]
if: ${{ needs.changes.outputs.packages != '[]' }}
strategy:
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
Expand Down Expand Up @@ -78,6 +94,7 @@ jobs:
name: Build package
runs-on: ubuntu-latest
needs: [linters, commons, changes]
if: ${{ needs.changes.outputs.packages != '[]' }}
strategy:
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
Expand Down

0 comments on commit f1d3682

Please sign in to comment.