Unverified Commit c81c66ed authored by Licho's avatar Licho Committed by GitHub

Merge pull request #1595 from leechor/autoSpotlessApply

LGTM
parents 18d8a598 8f455056
......@@ -25,8 +25,6 @@ on:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '**/*.yml'
- '**/*.yaml'
- '**/*.sql'
concurrency:
......
name: Format Code in fork repo
on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '**/*.sql'
concurrency:
group: backend-${{ github.event.pull_request.number || github.ref }}
jobs:
format:
if: github.repository != 'DataLinkDC/dinky' && vars.FORMAT == 'true'
name: Format Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ secrets.TOKEN }}
- name: Run spotless apply
run : ./mvnw -T 4C -B --no-snapshot-updates clean spotless:apply -P flink-all
- name: Check for modified files
id: git-check
run: |
echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT
- uses: stefanzweifel/git-auto-commit-action@v4
if: steps.git-check.outputs.modified == 'true'
with:
commit_message: Spotless Apply
......@@ -51,7 +51,6 @@ import cn.hutool.http.Method;
*/
@SuppressWarnings("AlibabaClassNamingShouldBeCamel")
public class FlinkAPI {
private static final Logger logger = LoggerFactory.getLogger(FlinkAPI.class);
public static final String REST_TARGET_DIRECTORY = "rest.target-directory";
......
......@@ -39,7 +39,6 @@ import lombok.Setter;
@Getter
@Setter
public class Job {
private Integer id;
private Integer jobInstanceId;
private JobConfig jobConfig;
......
......@@ -91,7 +91,6 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<protobuf-java.version>2.5.0</protobuf-java.version>
<reflections.version>0.10.2</reflections.version>
<!--<flyway.version>6.4.4</flyway.version>-->
<sa-token.version>1.31.0</sa-token.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>2.12.10</scala.version>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment