From a14a35f3090141ddfe7aeac008b7397b6ef2f5e2 Mon Sep 17 00:00:00 2001 From: cgd <70825723+cupglassDEV@users.noreply.github.com> Date: Sun, 10 Nov 2024 19:11:13 +0700 Subject: [PATCH] use github action push to whatever --- .github/workflows/prettier.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 8f494707a..eb9442bcf 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -20,8 +20,12 @@ jobs: run: npx -y prettier ./domains -w --tab-width 2 --print-width 120 - name: Commit - run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - git commit -am "Format domains" - git push + 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 }}