mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-14 04:16:11 +00:00
Merge branch 'main' into patch-2
This commit is contained in:
2 files changed
+35
-1
No files matched your search
@@ -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"
|
source-directory: "raw-api"
|
||||||
destination-github-username: is-a-dev
|
destination-github-username: is-a-dev
|
||||||
destination-repository-name: raw-api
|
destination-repository-name: raw-api
|
||||||
user-email: actions@github.com
|
user-email: "actions@github.com"
|
||||||
user-name: "GitHub Actions"
|
user-name: "GitHub Actions"
|
||||||
env:
|
env:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.BOT }}
|
API_TOKEN_GITHUB: ${{ secrets.BOT }}
|
||||||
Reference in new issue
Block a user