Skip to content

Commit f1d3682

Browse files
committed
Fix workflow filters
Fix error when empty filter received
1 parent 8a68913 commit f1d3682

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,28 @@ jobs:
1616
id: filter
1717
with:
1818
filters: |
19-
allure-behave: allure-behave/**
20-
allure-nose2: allure-nose2/**
21-
allure-pytest: allure-pytest/**
22-
allure-pytest-bdd: allure-pytest-bdd/**
19+
allure-behave:
20+
- allure-behave/**
21+
- allure-python-commons/**
22+
- allure-python-commons-test/**
23+
allure-nose2:
24+
- allure-nose2/**
25+
- allure-python-commons/**
26+
- allure-python-commons-test/**
27+
allure-pytest:
28+
- allure-pytest/**
29+
- allure-python-commons/**
30+
- allure-python-commons-test/**
31+
allure-pytest-bdd:
32+
- allure-pytest-bdd/**
33+
- allure-python-commons/**
34+
- allure-python-commons-test/**
35+
allure-robotframework:
36+
- allure-robotframework/**
37+
- allure-python-commons/**
38+
- allure-python-commons-test/**
2339
allure-python-commons: allure-python-commons/**
2440
allure-python-commons-test: allure-python-commons-test/**
25-
allure-robotframework: allure-robotframework/**
2641
2742
commons:
2843
name: Build commons
@@ -47,6 +62,7 @@ jobs:
4762
name: Static check
4863
runs-on: ubuntu-latest
4964
needs: [commons, changes]
65+
if: ${{ needs.changes.outputs.packages != '[]' }}
5066
strategy:
5167
matrix:
5268
package: ${{ fromJSON(needs.changes.outputs.packages) }}
@@ -78,6 +94,7 @@ jobs:
7894
name: Build package
7995
runs-on: ubuntu-latest
8096
needs: [linters, commons, changes]
97+
if: ${{ needs.changes.outputs.packages != '[]' }}
8198
strategy:
8299
matrix:
83100
package: ${{ fromJSON(needs.changes.outputs.packages) }}

0 commit comments

Comments
 (0)