Skip to content

Commit 923d3f7

Browse files
committed
a
1 parent 5dc856d commit 923d3f7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/format.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
name: Format files with pre-commit
1414
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v4
1717
with:
1818
ssh-key: ${{ env.SSH_KEY }}
1919
fetch-depth: 0
2020

2121

2222
- name: Skip if bot
2323
run: |
24-
AUTHOR=$(git log -1 --pretty=%an)
24+
git log -1
25+
AUTHOR=$(git log -1 --pretty="%an %ae")
2526
echo ">$AUTHOR<"
2627
if [[ $AUTHOR =~ [Bb]ot ]]; then
2728
echo "Commit made by bot, skipping further steps in the pipeline."
@@ -50,4 +51,5 @@ jobs:
5051
git config user.name "Bot"
5152
git config user.email "<action@github.com>"
5253
git commit -am "Fix file format"
54+
git config push.autoSetupRemote true
5355
git push

0 commit comments

Comments
 (0)