diff --git a/.github/workflows/linter.yml b/.github/workflows/pre-commit.yml similarity index 93% rename from .github/workflows/linter.yml rename to .github/workflows/pre-commit.yml index 1901861a7a..f9f3bfe53b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/pre-commit.yml @@ -45,3 +45,5 @@ jobs: key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - name: Run pre-commit run: pre-commit run --all-files + - name: Run pre-commit manual stages + run: pre-commit run --all-files --hook-stage manual diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e663d5e570..e7a44e7ed1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,11 @@ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 hooks: + - id: chmod + name: set file permissions + args: ['644'] + files: \.md$ + stages: [manual] - id: insert-license name: add license for all Markdown files files: \.md$