Skip to content

[bug] added validators to 404 routes for dynamic routes #467

[bug] added validators to 404 routes for dynamic routes

[bug] added validators to 404 routes for dynamic routes #467

Workflow file for this run

name: Prettier
on:
pull_request:
branches: [main]
jobs:
prettier:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Prettify Code
run: |
npm install
npx prettier --write "src/**/*.{js,jsx,ts,tsx,json,css,md}"
- name: Commit changes
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
FILES=$(git diff --name-only --staged)
if [ -z "$FILES" ]; then
echo "No changes to commit."
exit 0
else
git commit -m "Prettify Code: $FILES"
fi
- name: Push changes
if: success()
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}