Skip to content

Refactor VSCode configuration #94

Refactor VSCode configuration

Refactor VSCode configuration #94

Workflow file for this run

---
name: Lint
on:
push:
branches:
- main
pull_request: null
permissions: {}
jobs:
build:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter/slim@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
FILTER_REGEX_EXCLUDE: '(.devcontainer/Dockerfile|.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md)'
fix-lint:
name: Fix Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter/slim@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
FILTER_REGEX_EXCLUDE: '(.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md)'
FIX_JSON_PRETTIER: true
FIX_MARKDOWN: true
FIX_MARKDOWN_PRETTIER: true
FIX_SHELL_SHFMT: true
FIX_SQLFLUFF: true
FIX_YAML_PRETTIER: true
VALIDATE_DOCKERFILE_HADOLINT: false
- name: Commit and push linting fixes
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.head.ref != github.event.repository.default_branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.head.ref }}
commit_message: 'chore: fix linting issues'
commit_user_name: super-linter
commit_user_email: [email protected]