mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge branch 'master' of https://github.com/Slimefun/Slimefun4.git into tags
This commit is contained in:
commit
b6624bd43a
30
.github/workflows/imports-fix.yml
vendored
Normal file
30
.github/workflows/imports-fix.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Clean up Imports
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'src/main/java/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
name: Clean up Imports
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.base.repo.full_name == 'Slimefun/Slimefun4'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2.3.3
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1.4.3
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
- name: Google Java Format
|
||||||
|
uses: axel-op/googlejavaformat-action@v3.3.2
|
||||||
|
with:
|
||||||
|
files: '**/*.java'
|
||||||
|
skipCommit: false
|
||||||
|
args: "--fix-imports-only --replace"
|
||||||
|
githubToken: ${{ secrets.ACCESS_TOKEN }}
|
Loading…
Reference in New Issue
Block a user