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