Skip to content

Commit feecbb9

Browse files
committed
ci: Add pyproject.toml to changed-build-files
Trigger Setup Bench and Server Tests if pyproject.toml changes
1 parent 270ce57 commit feecbb9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
outputs:
2121
changed-python: ${{ steps.changed-python-files.outputs.any_changed }}
22+
changed-build: ${{ steps.changed-build-files.outputs.any_changed }}
2223
changed-json: ${{ steps.changed-json-files.outputs.any_changed }}
2324
changed-js-vue: ${{ steps.changed-js-vue-files.outputs.any_changed }}
2425

@@ -51,6 +52,13 @@ jobs:
5152
files: |
5253
**.py
5354
55+
- name: Get changed build files
56+
id: changed-build-files
57+
uses: tj-actions/changed-files@v45
58+
with:
59+
files: |
60+
pyproject.toml
61+
5462
- name: Get changed json files
5563
id: changed-json-files
5664
uses: tj-actions/changed-files@v45
@@ -113,7 +121,7 @@ jobs:
113121
name: Setup Bench
114122
needs: format
115123
runs-on: ubuntu-latest
116-
if: needs.format.outputs.changed-python == 'true' || needs.format.outputs.changed-json == 'true' || needs.format.outputs.changed-js-vue == 'true'
124+
if: needs.format.outputs.changed-python == 'true' || needs.format.outputs.changed-json == 'true' || needs.format.outputs.changed-js-vue == 'true' || needs.format.outputs.changed-build == 'true'
117125

118126
services:
119127
mariadb:
@@ -365,7 +373,7 @@ jobs:
365373
fail-fast: false
366374
matrix:
367375
container: [1, 2, 3]
368-
if: needs.format.outputs.changed-python == 'true' || needs.format.outputs.changed-json == 'true'
376+
if: needs.format.outputs.changed-python == 'true' || needs.format.outputs.changed-json == 'true' || needs.format.outputs.changed-build == 'true'
369377

370378
steps:
371379
- name: Create mariadb data directory

0 commit comments

Comments
 (0)