add linters #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Fix Lint Issues | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| fix-lint-issues: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| # To write linting fixes | |
| contents: write | |
| # To write Super-linter status checks | |
| statuses: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Load super-linter configuration | |
| run: grep -v '^#' .github/super-linter.env >> "$GITHUB_ENV" | |
| - name: Super-linter | |
| uses: super-linter/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit and push linting fixes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} | |
| commit_message: "chore: fix linting issues" | |
| commit_user_name: super-linter | |
| commit_user_email: [email protected] |