mirror of
https://github.com/tt-rss/tt-rss.github.io.git
synced 2026-09-18 14:11:46 +00:00
Update the Lint workflow to align with the super-linter project example.
https://github.com/super-linter/super-linter?tab=readme-ov-file#get-started
This commit is contained in:
+12
-10
@@ -9,27 +9,29 @@ on:
|
||||
# Allow other workflows (e.g. Pages) to invoke this one.
|
||||
workflow_call:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
statuses: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
super-linter:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
statuses: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- 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
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user