Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
6ffcce34
Unverified
Commit
6ffcce34
authored
Feb 02, 2023
by
Licho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: spotless format in fork repo
parent
baac89cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
7 deletions
+37
-7
backend.yaml
.github/workflows/backend.yaml
+0
-7
format_code.yaml
.github/workflows/format_code.yaml
+37
-0
No files found.
.github/workflows/backend.yaml
View file @
6ffcce34
...
...
@@ -38,16 +38,9 @@ jobs:
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Run spotless apply
run
:
./mvnw -T 4C -B --no-snapshot-updates clean spotless:apply -P flink-all
-
name
:
Check Style
run
:
|
./mvnw -T 4C -B --no-snapshot-updates clean spotless:check -P flink-all
-
uses
:
stefanzweifel/git-auto-commit-action@v4
with
:
commit_message
:
Spotless Apply
commit_user_name
:
Spotless
commit_user_email
:
spotless@dinky.org
build_npm
:
name
:
Build_NPM
runs-on
:
ubuntu-latest
...
...
.github/workflows/format_code.yaml
0 → 100644
View file @
6ffcce34
name
:
Format Code in fork repo
on
:
push
:
pull_request
:
branches
:
-
dev
paths-ignore
:
-
'
docs/**'
-
'
**/*.md'
-
'
**/*.sql'
concurrency
:
group
:
backend-${{ github.event.pull_request.number || github.ref }}
jobs
:
format
:
if
:
github.repository != 'DataLinkDC/dinky'
name
:
Format and Check Code
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
ref
:
${{ github.head_ref }}
-
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
commit_user_name
:
Spotless
commit_user_email
:
spotless@dinky.org
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment