diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 000000000..f67a561c4 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -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 }} diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index 35680dc72..4ba2bd85d 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -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 }}