Skip to content

Merge branch 'main' of https://github.com/DoonOnthon/GamePulse #1

Merge branch 'main' of https://github.com/DoonOnthon/GamePulse

Merge branch 'main' of https://github.com/DoonOnthon/GamePulse #1

Workflow file for this run

name: Code Formatting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
format-code:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm install
- name: Format code using prettier-action
uses: stefanzweifel/prettier-action@v2
with:
files: . # Specify the files or directories you want to format
prettier: npm # Use 'npm' or 'yarn' depending on your package manager
- name: Commit formatted code
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Auto-format code"
git push