|
1 | 1 | name: Super Linter
|
2 | 2 |
|
3 |
| -on: # yamllint disable-line rule:truthy |
4 |
| - push: null |
5 |
| - pull_request: null |
| 3 | + on: |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + pull_request: |
| 7 | + branches: [master] |
6 | 8 |
|
7 | 9 | permissions:
|
8 | 10 | contents: read
|
@@ -54,19 +56,23 @@ jobs:
|
54 | 56 | # To reuse the same Super-linter configuration that you use in the
|
55 | 57 | # lint job without duplicating it, see
|
56 | 58 | # https://github.com/super-linter/super-linter/blob/main/docs/run-linter-locally.md#share-environment-variables-between-environments
|
57 |
| - - name: Commit and push linting fixes |
58 |
| - # Run only on: |
59 |
| - # - Pull requests |
60 |
| - # - Not on the default branch |
61 |
| - if: > |
62 |
| - github.event_name == 'pull_request' && |
63 |
| - github.ref_name != github.event.repository.default_branch |
64 |
| - uses: stefanzweifel/git-auto-commit-action@v5 |
| 59 | + - name: add |
| 60 | + uses: EndBug/add-and-commit@v9 |
65 | 61 | with:
|
66 |
| - branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} |
67 |
| - commit_message: "chore: fix linting issues" |
68 |
| - commit_user_name: super-linter |
69 |
| - commit_user_email: [email protected] |
| 62 | + default_author: github_actions |
| 63 | + # - name: Commit and push linting fixes |
| 64 | + # # Run only on: |
| 65 | + # # - Pull requests |
| 66 | + # # - Not on the default branch |
| 67 | + # if: > |
| 68 | + # github.event_name == 'pull_request' && |
| 69 | + # github.ref_name != github.event.repository.default_branch |
| 70 | + # uses: stefanzweifel/git-auto-commit-action@v5 |
| 71 | + # with: |
| 72 | + # branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} |
| 73 | + # commit_message: "chore: fix linting issues" |
| 74 | + # commit_user_name: super-linter |
| 75 | + # commit_user_email: [email protected] |
70 | 76 |
|
71 | 77 | # on:
|
72 | 78 | # push:
|
|
0 commit comments