ci: try fix path filter

This commit is contained in:
H01001000
2022-12-04 18:43:17 +08:00
parent 165e9bb4cf
commit 5e8315efb7

View File

@@ -23,7 +23,7 @@ jobs:
id: changes
with:
filters: |
bot: bot: ${ steps.changes.outputs.bot }
bot:
- "packages/bot/**"
gateway:
- "packages/gateway/**"
@@ -44,8 +44,19 @@ jobs:
strategy:
matrix:
package: ["bot", "gateway", "rest", "types", "utils"]
run: [false]
exclude:
- package: bot
with: ${{ needs.path-filter.outputs.bot || needs.path-filter.outputs.global }}
- package: gateway
run: ${{ needs.path-filter.outputs.gateway || needs.path-filter.outputs.global }}
- package: rest
run: ${{ needs.path-filter.outputs.rest || needs.path-filter.outputs.global }}
- package: types
run: ${{ needs.path-filter.outputs.types || needs.path-filter.outputs.global }}
- package: utils
run: ${{ needs.path-filter.outputs.utils || needs.path-filter.outputs.global }}
needs: path-filter
if: ${{ needs.path-filter.outputs[format('{0}',matrix.package] == 'true' || needs.path-filter.outputs.global }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3