chore(npm): bump the next-tailwindcss-types-node-eslint-dependencies … #2806
Workflow file for this run
This file contains hidden or 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@v5 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup JDK 23 | |
uses: actions/setup-java@v5 | |
with: | |
distribution: 'oracle' | |
java-version: 23 | |
- 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 |