Skip to main content

GitHub Action

Version 0.7.1

Lintje is available as a GitHub Action which can be used in GitHub actions workflows to validate commits and branches on every push.

For more information on how to use the Lintje GitHub Action, please see the Lintje GitHub Action README.

Back to installation section.

Example GitHub workflow using Lintje

name: "Your workflow name"
on: [push]

jobs:
  lintje: # Add a new job for Lintje
    name: "Lintje (Git linter)"
    runs-on: ubuntu-latest # Supported on ubuntu, macOS and Microsoft Windows
    if: ${{ github.event_name != 'schedule' }}
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0 # Fetch depth is required
      - uses: lintje/action@v0.11