Skip to content

Commit

Permalink
Add change filter
Browse files Browse the repository at this point in the history
  • Loading branch information
CheneyYin committed Jun 20, 2023
1 parent 2c0a8b6 commit 5fe02ae
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 70 deletions.
60 changes: 58 additions & 2 deletions .github/workflows/maven_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,67 @@ jobs:
with:
swap-size-gb: 8
- uses: actions/checkout@v3
- name: Filter Changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
ui:
- 'metal-ui/**'
mod:
- 'metal-backend/**'
- 'metal-backend-api/**'
- 'metal-core/**'
- 'metal-dist/**'
- 'metal-maven-plugin/**'
- 'metal-on-spark/**'
- 'metal-on-spark-extensions/**'
- 'metal-parent/**'
- 'metal-server/**'
ci:
- '.github/workflows/**.yml'
chore:
- '**.md'
- 'doc/**'
- 'LICENSE'
- 'licenses/**'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean package -B -pl metal-dist -am -Dmaven.test.skip=true
- if: ${{ steps.changes.outputs.ci == 'true' }}
name: Build on CI changed
id: ci
run: |
echo 'CI has been changed, the whole build will execute.'
mvn clean package -B -pl metal-dist -am -Dmaven.test.skip=true
echo 'done=true' >> $GITHUB_OUTPUT
- if: ${{ steps.ci.outputs.done == 'false' && steps.changes.outputs.ui == 'true' }}
name: Build on metal-ui changed
id: ui
run: |
echo 'metal-ui has been updated, the whole build will execute.'
mvn clean package -B -pl metal-dist -am -Dmaven.test.skip=true
echo 'done=true' >> $GITHUB_OUTPUT
- if: ${{ steps.ci.outputs.done == 'false' && steps.ui.outputs.done == 'false' && steps.changes.outputs.mod == 'true' }}
name: Build on modules changed
id: mod
run: |
echo 'Some modules has been changed, except metal-ui, the build will skip metal-ui.'
mvn clean package -B -pl metal-dist -am -Dmaven.test.skip=true -Dskip.npm
echo 'done=true' >> $GITHUB_OUTPUT
- if: ${{ steps.ci.outputs.done == 'false' && steps.ui.outputs.done == 'false' && steps.mod.outputs.ui == 'false' && steps.changes.outputs.chore == 'true' }}
name: Skip build on chores changed
id: chore
run: |
echo 'Just some chore files have been updated, it will skip build.'
echo 'done=true' >> $GITHUB_OUTPUT
- name: Finish
run: echo 'Build is finished.'
77 changes: 9 additions & 68 deletions release-note.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,24 @@

## Bug fix

### metal-core
- [module]title (`issue/PR`)

### metal-on-spark
- [module]title (`issue/PR`)

### metal-on-spark-extensions
- [module]title (`issue/PR`)

### metal-backend
- [module]title (`issue/PR`)

### metal-backend-api
- [module]title (`issue/PR`)

### metal-server
- [module]title (`issue/PR`)

### metal-ui
- [module]title (`issue/PR`)

### metal/metal-parent/metal-dist
- [module]title (`issue/PR`)
- [Bug][module] title (`issue/PR`)

## Improve

### metal-core
- [module]title (`issue/PR`)

### metal-on-spark
- [module]title (`issue/PR`)

### metal-on-spark-extensions
- [module]title (`issue/PR`)

### metal-backend
- [module]title (`issue/PR`)

### metal-backend-api
- [module]title (`issue/PR`)

### metal-server
- [module]title (`issue/PR`)

### metal-ui
- [module]title (`issue/PR`)

### metal/metal-parent/metal-dist
- [module]title (`issue/PR`)

- [Improve][module] title (`issue/PR`)

## Feature

### metal-core
- [module]title (`issue/PR`)
- [Feature][module] title (`issue/PR`)

### metal-on-spark
- [module]title (`issue/PR`)

### metal-on-spark-extensions
- [module]title (`issue/PR`)

### metal-backend
- [module]title (`issue/PR`)

### metal-backend-api
- [module]title (`issue/PR`)
## Document

### metal-server
- [module]title (`issue/PR`)
- [Doc] title (`issue/PR`)

### metal-ui
- [module]title (`issue/PR`)
## Chore

### metal/metal-parent/metal-dist
- [module]title (`issue/PR`)
- [Chore] title (`issue/PR`)

## Document
## CI

- [Doc] title (`issue/PR`)
- [CI] title (`issue/PR`)

0 comments on commit 5fe02ae

Please sign in to comment.