Skip to content

add intellij reformatter on pull requests #4

add intellij reformatter on pull requests

add intellij reformatter on pull requests #4

Workflow file for this run

name: Re-format Code
on:
pull_request:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install IntelliJ IDEA
run: |
wget -q -O idea.tar.gz https://download.jetbrains.com/idea/ideaIC-2024.1.1.tar.gz
tar -xzf idea.tar.gz
- name: Format code
run: |
./*/bin/format.sh -m *.java -r .
- name: Commit changes
run: |
git config --global user.name 'ben reed'
git config --global user.email '[email protected]'
git commit -a -m "Auto-format code"
git push