Skip to content

Commit 24f6e16

Browse files
committed
공통 POM 수정시에도 워크플로우 동작하게 변경
1 parent 4a0f7f8 commit 24f6e16

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches: [ master ]
99
paths:
10+
- 'study-dependencies-parent/**'
1011
- 'part-last/my-board-spring5/**'
1112
- 'part-last/my-board/**'
1213
- '.github/workflows/maven-build.yml'
@@ -15,6 +16,7 @@ jobs:
1516
detect-changes:
1617
runs-on: ubuntu-latest
1718
outputs:
19+
common-pom: ${{ steps.filter.outputs.common-pom }}
1820
my-board-spring5: ${{ steps.filter.outputs.my-board-spring5 }}
1921
my-board: ${{ steps.filter.outputs.my-board }}
2022
workflow: ${{ steps.filter.outputs.workflow }}
@@ -24,6 +26,8 @@ jobs:
2426
id: filter
2527
with:
2628
filters: |
29+
common-pom:
30+
- 'study-dependencies-parent/**'
2731
my-board-spring5:
2832
- 'part-last/my-board-spring5/**'
2933
my-board:
@@ -33,7 +37,7 @@ jobs:
3337
3438
build-my-board-spring5-java17:
3539
needs: detect-changes
36-
if: needs.detect-changes.outputs.my-board-spring5 == 'true' || needs.detect-changes.outputs.workflow == 'true'
40+
if: needs.detect-changes.outputs.my-board-spring5 == 'true' || needs.detect-changes.outputs.common-pom == 'true' || needs.detect-changes.outputs.workflow == 'true'
3741
runs-on: ubuntu-latest
3842
permissions:
3943
contents: read
@@ -53,7 +57,7 @@ jobs:
5357

5458
build-my-board-java21:
5559
needs: detect-changes
56-
if: needs.detect-changes.outputs.my-board == 'true' || needs.detect-changes.outputs.workflow == 'true'
60+
if: needs.detect-changes.outputs.my-board == 'true' || needs.detect-changes.outputs.common-pom == 'true' || needs.detect-changes.outputs.workflow == 'true'
5761
runs-on: ubuntu-latest
5862
permissions:
5963
contents: read

0 commit comments

Comments
 (0)