Skip to content

add intellij reformatter on pull requests #1

add intellij reformatter on pull requests

add intellij reformatter on pull requests #1

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 -O idea.tar.gz https://download.jetbrains.com/idea/ideaIC-2024.1.1.tar.gz
tar -xzf idea.tar.gz
- name: Format code
run: |
./idea/bin/format.sh */src
- name: Commit changes
run: |
git config --global user.name 'ben reed'
git config --global user.email '[email protected]'
git add .
git commit -m "Auto-format code"
git push