Files
is-a-dev/.github/workflows/prettier.yml
T
2024-11-10 19:11:13 +07:00

32 lines
844 B
YAML

name: Prettier
on:
push:
branches: [main]
paths:
- "domains/*"
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Run Prettier
run: npx -y prettier ./domains -w --tab-width 2 --print-width 120
- name: Commit
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "register"
destination-github-username: is-a-dev
destination-repository-name: register
user-email: actions@github.com
user-name: "GitHub Actions"
env:
API_TOKEN_GITHUB: ${{ secrets.BOT }}