File tree Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Original file line number Diff line number Diff line change 26
26
curl -fsSL https://raw.githubusercontent.com/huacnlee/autocorrect/main/install | sh
27
27
autocorrect --fix
28
28
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
-
38
29
- name : Check for changes
39
30
id : check_changes
40
31
run : |
@@ -55,14 +46,14 @@ jobs:
55
46
git commit -m "Auto fix formatting by autocorrect [ci skip]"
56
47
git push origin HEAD
57
48
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 }}.
You can’t perform that action at this time.
0 commit comments