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 f053b29 commit 468ad4fCopy full SHA for 468ad4f
.github/workflows/format.yml
@@ -18,6 +18,15 @@ jobs:
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)
25
+ if [[ $AUTHOR =~ "bot|Bot" ]]; then
26
+ echo "Commit made by bot, skipping further steps in the pipeline."
27
+ exit 0
28
+ fi
29
30
- name: Install python
31
uses: actions/setup-python@v3
32
@@ -39,5 +48,5 @@ jobs:
39
48
run: |
40
49
git config user.name "Bot"
41
50
git config user.email "<[email protected]>"
42
- git commit -am "Fix file format [skip ci]"
51
+ git commit -am "Fix file format"
43
52
git push origin HEAD:${{github.event.pull_request.head.ref}}
0 commit comments