Skip to content

Commit 4bc3732

Browse files
gitvegPlucky923
authored andcommitted
ci: delete the check for non-main branch
Signed-off-by: Jianuo Kuang <[email protected]>
1 parent a627417 commit 4bc3732

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ jobs:
2626
curl -fsSL https://raw.githubusercontent.com/huacnlee/autocorrect/main/install | sh
2727
autocorrect --fix
2828
29-
- name: Stop and report errors if not master
30-
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master'
31-
run: |
32-
git add -A
33-
if ! git diff-index --quiet --cached HEAD --; then
34-
echo "Stop."
35-
exit 1
36-
fi
37-
3829
- name: Check for changes
3930
id: check_changes
4031
run: |
@@ -55,14 +46,14 @@ jobs:
5546
git commit -m "Auto fix formatting by autocorrect [ci skip]"
5647
git push origin HEAD
5748
58-
- name: Create Pull Request (if on non-master branch)
59-
if: github.ref != 'refs/heads/master' && steps.check_changes.outputs.has_changes == 'true'
60-
uses: peter-evans/create-pull-request@v6
61-
with:
62-
commit-message: "Auto fix formatting by autocorrect [ci skip]"
63-
branch: auto-fix-${{ github.run_number }}
64-
delete-branch: true
65-
title: "Auto fix formatting by autocorrect"
66-
body: |
67-
This PR contains automatic fixes by the `autocorrect` tool.
68-
Generated by GitHub Actions run ${{ github.run_number }}.
49+
# - name: Create Pull Request (if on non-main branch)
50+
# if: github.ref != 'refs/heads/main' && steps.check_changes.outputs.has_changes == 'true'
51+
# uses: peter-evans/create-pull-request@v6
52+
# with:
53+
# commit-message: "Auto fix formatting by autocorrect [ci skip]"
54+
# branch: auto-fix-${{ github.run_number }}
55+
# delete-branch: true
56+
# title: "Auto fix formatting by autocorrect"
57+
# body: |
58+
# This PR contains automatic fixes by the `autocorrect` tool.
59+
# Generated by GitHub Actions run ${{ github.run_number }}.

0 commit comments

Comments
 (0)