File tree Expand file tree Collapse file tree 3 files changed +35
-14
lines changed Expand file tree Collapse file tree 3 files changed +35
-14
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14-
1514 runs-on : ubuntu-latest
16-
1715 steps :
18- - uses : actions/checkout@v4
16+ - uses : actions/checkout@v2
1917 - name : Set up JDK 17
20- uses : actions/setup-java@v4
18+ uses : actions/setup-java@v2
2119 with :
2220 java-version : ' 17'
2321 distribution : ' adopt'
24- - name : Build with Maven
22+
23+ - name : mvn clean install
2524 run : mvn clean install
26- - name : spring-javaformat:validate
25+
26+ - name : mvn spring-javaformat:validate
27+ id : validate
2728 run : mvn spring-javaformat:validate
29+ continue-on-error : true
30+
31+ - name : Auto format code if validation fails
32+ if : steps.validate.outcome == 'failure'
33+ run : mvn spring-javaformat:apply
34+
35+ - name : Create Pull Request for formatting changes
36+ if : steps.validate.outcome == 'failure'
37+ uses : peter-evans/create-pull-request@v5
38+ with :
39+ token : ${{ secrets.GITHUB_TOKEN }}
40+ commit-message : ' Auto-format code with spring-javaformat'
41+ title : ' Auto-format: Fix code formatting issues'
42+ body : |
43+ This PR was automatically created because the spring-javaformat validation failed.
44+
45+ The following changes have been applied:
46+ - Applied spring-javaformat:apply to fix formatting issues
47+
48+ Please review and merge if the changes look correct.
49+ branch : auto-format-${{ github.run_number }}
50+ delete-branch : true
Original file line number Diff line number Diff line change 1- 以下是基于你提供的内容生成的开源项目 ` excel-spring-boot-starter ` 的 README 示例:
2-
3- ---
4-
51# Excel Spring Boot Starter
62
3+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/com.pig4cloud.excel/excel-spring-boot-starter.svg )] ( https://central.sonatype.com/artifact/com.pig4cloud.excel/excel-spring-boot-starter )
4+
75` excel-spring-boot-starter ` 是一个基于 ` FastExcel ` 实现的 Spring Boot Starter,用于简化 Excel 的读写操作。` FastExcel ` 是一个 Java 开源项目,旨在以尽可能低的内存消耗实现对 Excel 文件的读写。通过 ` FastExcel ` ,你可以在仅使用 64M 内存的情况下,在 1 分钟内读取 75M(46 万行,25 列)的 Excel 文件。
86
97- 更多详细的使用说明,请参考文档:[ https://www.yuque.com/pig4cloud/ogf9nv ] ( https://www.yuque.com/pig4cloud/ogf9nv )
2018
2119| 版本 | 支持版本 |
2220| -------| -------------------|
23- | 3.4.1 | 适配 Spring Boot 3.x |
21+ | 3.4.2 | 适配 Spring Boot 3.x |
2422| 1.2.7 | 适配 Spring Boot 2.x |
2523
2624在 ` pom.xml ` 中添加以下依赖:
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.springframework.boot</groupId >
77 <artifactId >spring-boot-starter-parent</artifactId >
8- <version >3.4.4 </version >
8+ <version >3.5.3 </version >
99 <relativePath /> <!-- lookup parent from repository -->
1010 </parent >
1111 <groupId >com.pig4cloud.excel</groupId >
1212 <artifactId >excel-spring-boot-starter</artifactId >
13- <version >3.4.1 </version >
13+ <version >3.4.2 </version >
1414 <name >excel-spring-boot-starter</name >
1515 <description >easy and high performance excel</description >
1616 <url >https://pig4cloud.com</url >
3636 </scm >
3737 <properties >
3838 <java .version>17</java .version>
39- <fastexcel .version>1.1 .0</fastexcel .version>
39+ <fastexcel .version>1.2 .0</fastexcel .version>
4040 <mica .version>3.1.4</mica .version>
4141 <spring .checkstyle.plugin>0.0.43</spring .checkstyle.plugin>
4242 <git .commit.plugin>4.9.10</git .commit.plugin>
You can’t perform that action at this time.
0 commit comments