We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc856d commit 923d3f7Copy full SHA for 923d3f7
1 file changed
.github/workflows/format.yml
@@ -13,15 +13,16 @@ jobs:
13
name: Format files with pre-commit
14
runs-on: ubuntu-24.04
15
steps:
16
- - uses: actions/checkout@v5
+ - uses: actions/checkout@v4
17
with:
18
ssh-key: ${{ env.SSH_KEY }}
19
fetch-depth: 0
20
21
22
- name: Skip if bot
23
run: |
24
- AUTHOR=$(git log -1 --pretty=%an)
+ git log -1
25
+ AUTHOR=$(git log -1 --pretty="%an %ae")
26
echo ">$AUTHOR<"
27
if [[ $AUTHOR =~ [Bb]ot ]]; then
28
echo "Commit made by bot, skipping further steps in the pipeline."
@@ -50,4 +51,5 @@ jobs:
50
51
git config user.name "Bot"
52
git config user.email "<action@github.com>"
53
git commit -am "Fix file format"
54
+ git config push.autoSetupRemote true
55
git push
0 commit comments