Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
54548fd8
Commit
54548fd8
authored
Jul 12, 2022
by
AnimeGitB
Committed by
Luke H-W
Jul 12, 2022
Browse files
Push to LintRatchet instead, separate lint action
parent
8843276c
Changes
3
Show whitespace changes
Inline
Side-by-side
.github/workflows/build.yml
View file @
54548fd8
...
...
@@ -6,6 +6,7 @@ on:
-
"
**.java"
branches
:
-
"
stable"
-
"
development"
pull_request
:
paths
:
-
"
**.java"
...
...
.github/workflows/build_lint.yml
deleted
100644 → 0
View file @
8843276c
name
:
"
Lint
and
Build"
on
:
workflow_dispatch
:
~
push
:
paths
:
-
"
**.java"
branches
:
-
"
development"
jobs
:
Build-Server-Jar
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Setup Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10'
-
name
:
Run Linter
run
:
python format_whitespace.py
-
name
:
Setup Java
uses
:
actions/setup-java@v3
with
:
distribution
:
temurin
java-version
:
'
17'
-
name
:
Cache gradle files
uses
:
actions/cache@v2
with
:
path
:
|
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key
:
${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
restore-keys
:
|
${{ runner.os }}-gradle-
-
name
:
Run Gradle
run
:
./gradlew && ./gradlew jar
-
name
:
Upload build
uses
:
actions/upload-artifact@v3
with
:
name
:
Grasscutter
path
:
grasscutter-*.jar
-
name
:
Commit any Linter changes
uses
:
EndBug/add-and-commit@v9
with
:
add
:
'
-u'
default_author
:
github_actions
message
:
'
Fix
whitespace'
.github/workflows/lint_commit.yml
0 → 100644
View file @
54548fd8
name
:
"
Lint
whitespace
and
languages"
on
:
workflow_dispatch
:
~
push
:
paths
:
-
"
**.java"
-
"
**.json"
branches
:
-
"
development"
jobs
:
Build-Server-Jar
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Setup Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10'
-
name
:
Run Whitespace Linter
run
:
python format_whitespace.py
-
run
:
git config --global user.name "github-actions"
-
run
:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
-
run
:
git stash
# - name: Remove Whitespace Linter's LintRatchet ref
# run: git branch -D LintRatchet
# - name: Fetch this repo's LintRatchet branch
# run: git fetch origin LintRatchet:LintRatchet
-
run
:
git checkout LintRatchet
-
run
:
git merge development
-
run
:
git stash pop
-
run
:
git add -u
-
run
:
git commit -m 'Fix whitespace [skip actions]'
-
name
:
Update Languages
run
:
python manage_languages.py -u
-
run
:
git add -u
-
run
:
git commit -m 'Update languages [skip actions]'
-
run
:
git push --set-upstream origin LintRatchet
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