mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-19 21:25:36 +00:00
32 lines
844 B
YAML
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 }}
|