mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-19 17:28:48 +00:00
Merge branch 'main' into patch-2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: Prettier
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "domains/*"
|
||||
- ".github/workflows/prettier.yml"
|
||||
|
||||
jobs:
|
||||
format:
|
||||
name: Format
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- 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 }}
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
source-directory: "raw-api"
|
||||
destination-github-username: is-a-dev
|
||||
destination-repository-name: raw-api
|
||||
user-email: actions@github.com
|
||||
user-email: "actions@github.com"
|
||||
user-name: "GitHub Actions"
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.BOT }}
|
||||
|
||||
Reference in New Issue
Block a user