Files
tt-rss.github.io/.github/workflows/lint.yml
T

36 lines
815 B
YAML

---
name: Lint
on:
pull_request:
branches: [main]
# Allow manual triggering
workflow_dispatch:
# Allow other workflows (e.g. Pages) to invoke this one.
workflow_call:
permissions:
contents: read
statuses: write
jobs:
super-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Run Super-Linter
uses: super-linter/super-linter/slim@v8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
# Validate all files on push/workflow_dispatch, only changed files on
# PRs
VALIDATE_ALL_CODEBASE: >-
${{ github.event_name != 'pull_request' }}
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true