This commit includes the addition of a new markdown lint configuration to disable MD041 rule. It also introduces an Ansible best practices file, README guidelines for comprehensive project files, an AI PR review workflow, and new security checks using Gitleaks and markdown-lint.
72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
---
|
|
# .gitea/workflows/markdown-lint.yml
|
|
name: Markdown Lint
|
|
|
|
on: [pull_request, issues, push]
|
|
|
|
jobs:
|
|
build:
|
|
name: markdown-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
github-server-url: ${{ vars.GIT_SERVER_URL }}
|
|
|
|
- name: Install Node.js & markdownlint
|
|
run: |
|
|
apt-get update && apt-get install -y npm
|
|
npm install -g markdownlint-cli2
|
|
|
|
- name: Run lint
|
|
run: markdownlint-cli2 "**/*.md" "#node_modules"
|
|
|
|
# on:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
# pull_request:
|
|
# branches:
|
|
# - main
|
|
|
|
# jobs:
|
|
# markdown-lint:
|
|
# runs-on: docker
|
|
# container:
|
|
# image: node:20-alpine
|
|
# steps:
|
|
# - name: Install dependencies
|
|
# run: |
|
|
# apk add --no-cache git
|
|
# npm install -g markdownlint-cli2
|
|
|
|
# - name: Run Markdown lint
|
|
# run: |
|
|
# markdownlint-cli2 "**/*.md" "#node_modules"
|
|
|
|
#########################################à
|
|
|
|
# ---
|
|
# https://github.com/marketplace/actions/markdownlint-cli2-action
|
|
# name: Markdown Lint
|
|
|
|
# on: [pull_request, push]
|
|
|
|
# jobs:
|
|
# build:
|
|
# name: markdown-lint
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: Checkout code
|
|
# uses: actions/checkout@v4
|
|
# with:
|
|
# github-server-url: ${{ vars.GIT_SERVER_URL }}
|
|
|
|
# - name: Markdown lint
|
|
# uses: DavidAnson/markdownlint-cli2-action@v22
|
|
# with:
|
|
# globs: '**/*.md'
|
|
# fix: true
|
|
# continue-on-error: true
|