From b31ca46de6e355593dd06feb8d6dd0a52ca6845e Mon Sep 17 00:00:00 2001 From: Utsavkumar Lal <36764273+utsavll0@users.noreply.github.com> Date: Sun, 15 Oct 2023 22:33:32 -0400 Subject: [PATCH] Update code_formatter.yml --- .github/workflows/code_formatter.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code_formatter.yml b/.github/workflows/code_formatter.yml index 49ad9107..b064c048 100644 --- a/.github/workflows/code_formatter.yml +++ b/.github/workflows/code_formatter.yml @@ -1,7 +1,6 @@ -name: Format +name: Formatting python code on: - pull_request: - branches: [main] + push: paths: - '**.py' jobs: @@ -22,8 +21,8 @@ jobs: - name: Push changes if: steps.git-check.outputs.modified == 'true' run: | - git config --global user.name 'PrakruthiSomashekar' - git config --global user.email 'prakruthi1796@gmail.com' - git remote set-url origin https://x-access-token:${{ secrets.GIT_TOKEN }}@github.com/${{ deekay2310/calorieApp_server }} + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git commit -am "Automated autoyapf fixes" - git push \ No newline at end of file + git push