Skip to content

fix(ci/cd): checkout actions #5

fix(ci/cd): checkout actions

fix(ci/cd): checkout actions #5

name: 💄 Format Code Base
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
format-code-base:
name: 💄 Format Code Base
runs-on: ubuntu-latest
steps:
- name: 🐧 Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: 💄 Run Prettier
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{js,md,yml,html,css}
commit_message: "chore(codebase): format with prettier"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}