Skip to content

Change to ent

Change to ent #36

Workflow file for this run

name: Lint
on:
pull_request:
paths:
- ".github/workflows/*.yml"
- "**/*.go"
jobs:
Super-Linter:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.UPDATE_GITHUB_ACTION_WORKFLOWS_PAT }}
fetch-depth: 0
- name: Super-Linter
uses: super-linter/super-linter@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_ERRORS: true
FIX_YAML_PRETTIER: true
FIX_MARKDOWN_PRETTIER: true
FIX_GO_MODULES: true
FIX_GO: true
- name: Commit and push linting fixes
if: >
github.event_name == 'pull_request' &&
github.ref_name != github.event.repository.default_branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
file_pattern: ".github/**/*.yml README.md *.go **/*.go"
commit_message: "chore: fix linting issues"
commit_user_name: super-linter
commit_user_email: [email protected]