Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

make prettier works #1479

make prettier works

make prettier works #1479

Workflow file for this run

name: Code format
on: push
jobs:
code_format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node modules
run: npm install
- name: Format code
run: npm run code-format
- name: Config git
run: |
git config user.name 'github-actions'
git config user.email 'github-actions@github.com'
- name: Commit and push
run: |
if [[ -n $(git status --porcelain) ]]
then
git add .
git commit -m 'Format code'
git push
else
echo "Nothing to commit."
fi