Skip to content

Commit d37db02

Browse files
committed
simplify
1 parent 3894c28 commit d37db02

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/format.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ jobs:
1818
ssh-key: ${{ env.SSH_KEY }}
1919
fetch-depth: 0
2020

21-
- name: Bot setup
22-
run: |
23-
AUTHOR=$(git log -1 --pretty=%an)
24-
if [ "$AUTHOR" == "Bot" ]; then
25-
echo "Commit made by bot, skipping further steps in the pipeline."
26-
exit 0
27-
fi
28-
git config user.name "Bot"
29-
git config user.email "<[email protected]>"
30-
3121
- name: Install python
3222
uses: actions/setup-python@v3
3323

@@ -47,5 +37,7 @@ jobs:
4737
- name: Push formatting fixes
4838
if: steps.check.outcome == 'failure'
4939
run: |
50-
git commit -am "Fixes formatting"
40+
git config user.name "Bot"
41+
git config user.email "<[email protected]>"
42+
git commit -am "Fix file format [skip ci]"
5143
git push origin HEAD:${{github.event.pull_request.head.ref}}

0 commit comments

Comments
 (0)