small fix for public statuses #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Re-format Code | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- 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 user.name 'github-actions[bot]' | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git commit -a -m "Auto-format code" | |
git push | |