From d6b86fc9766894fdbfe08566e5bd6f2f5b817c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bru=C5=BEina?= Date: Thu, 23 Jul 2026 19:35:25 +0200 Subject: [PATCH] ci: add megalinter github workflow --- .github/workflows/megalinter.yaml | 37 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/megalinter.yaml create mode 100644 .gitignore diff --git a/.github/workflows/megalinter.yaml b/.github/workflows/megalinter.yaml new file mode 100644 index 0000000..44115f2 --- /dev/null +++ b/.github/workflows/megalinter.yaml @@ -0,0 +1,37 @@ +--- +name: MegaLinter +on: + pull_request: + paths: + - '**/*.md' + - '.markdownlint.yaml' + - '.mega-linter.yml' + - '.github/workflows/megalinter.yaml' + +concurrency: + group: megalinter-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: write + +jobs: + megalinter: + name: MegaLinter + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v7 + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + - name: MegaLinter + uses: oxsecurity/megalinter/flavors/documentation@v8 + env: + APPLY_FIXES: all + VALIDATE_ALL_CODEBASE: false + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Commit applied fixes + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: "style: apply megalinter fixes" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..549fbd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +megalinter-reports/