@@ -49,11 +49,11 @@ jobs:
4949 git config --local user.email "action@github.com"
5050 git config --local user.name "GitHub Action"
5151 git add ${{ env.PYTHON_TEMPLATE_LOCATION }}/pyproject.toml ${{ env.PYTHON_TEMPLATE_LOCATION }}/.pre-commit-config.yaml
52- git commit -m "Update ruff version to ${{ env.RUFF_VERSION }}"
5352 if git diff --quiet origin/main..; then
5453 echo "new_commits=false" >> $GITHUB_ENV
5554 exit 0
5655 else
56+ git commit -m "Update ruff version to ${{ env.RUFF_VERSION }}"
5757 echo "new_commits=true" >> $GITHUB_ENV
5858 fi;
5959 git push --set-upstream origin update-ruff-${{ env.RUFF_VERSION }}
@@ -106,11 +106,11 @@ jobs:
106106 git config --local user.email "action@github.com"
107107 git config --local user.name "GitHub Action"
108108 git add ${{ env.PYTHON_TEMPLATE_LOCATION }}/pyproject.toml ${{ env.PYTHON_TEMPLATE_LOCATION }}/.pre-commit-config.yaml
109- git commit -m "Update precommit to ${{ env.PRECOMMIT_VERSION }}"
110109 if git diff --quiet origin/main..; then
111110 echo "new_commits=false" >> $GITHUB_ENV
112111 exit 0
113112 else
113+ git commit -m "Update precommit to ${{ env.PRECOMMIT_VERSION }}"
114114 echo "new_commits=true" >> $GITHUB_ENV
115115 fi;
116116 git push --set-upstream origin update-precommit-${{ env.PRECOMMIT_VERSION }}
@@ -156,11 +156,11 @@ jobs:
156156 git config --local user.email "action@github.com"
157157 git config --local user.name "GitHub Action"
158158 git add ${{ env.PYTHON_TEMPLATE_LOCATION }}/.pre-commit-config.yaml
159- git commit -m "Update pre-commit-hooks version to ${{ env.PRECOMMIT_HOOKS_VERSION }}"
160159 if git diff --quiet origin/main..; then
161160 echo "new_commits=false" >> $GITHUB_ENV
162161 exit 0
163162 else
163+ git commit -m "Update pre-commit-hooks version to ${{ env.PRECOMMIT_HOOKS_VERSION }}"
164164 echo "new_commits=true" >> $GITHUB_ENV
165165 fi;
166166 git push --set-upstream origin update-precommit-hooks-${{ env.PRECOMMIT_HOOKS_VERSION }}
0 commit comments