Skip to content

Commit 489e528

Browse files
committed
pre-commit add chmod 644 manual hook for Markdown
1 parent 96ccd7e commit 489e528

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ jobs:
4545
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
4646
- name: Run pre-commit
4747
run: pre-commit run --all-files
48+
- name: Run manual pre-commit hooks
49+
run: pre-commit run --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,11 @@ repos:
103103
args: [--config=.github/linters/.markdown-lint.yml]
104104
types: [markdown]
105105
files: \.(md|mdown|markdown)$
106+
- repo: https://github.com/Lucas-C/pre-commit-hooks
107+
rev: v1.5.5
108+
hooks:
109+
- id: chmod
110+
name: set file permissions
111+
args: ['644']
112+
files: \.md$
113+
stages: [manual]

0 commit comments

Comments
 (0)