chore(maven): bump org.apache.commons:commons-text from 1.12.0 to 1.1… #1793
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: Format | |
on: | |
push: | |
paths-ignore: | |
- "*.txt" | |
pull_request: | |
paths-ignore: | |
- "*.txt" | |
workflow_dispatch: | |
jobs: | |
formatting: | |
name: Format files | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' | |
java-version: 21 | |
- name: Format Java files | |
run: mvn rewrite:run | |
- name: Install prettier | |
run: npm install -g --save-dev --save-exact prettier | |
- name: Format the rest of the files | |
run: prettier . --write | |
- name: Commit changes | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git add . | |
if [[ $(git status --porcelain) ]]; then | |
git commit -m "style: format codebase" | |
fi | |
- name: Push changes | |
if: github.event_name != 'pull_request' | |
run: git push |