diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml new file mode 100644 index 00000000000..067de949f0b --- /dev/null +++ b/.github/workflows/pre-commit.yaml @@ -0,0 +1,21 @@ +name: pre-commit + +on: + pull_request: + branches: ['main'] + +permissions: + contents: read + +jobs: + pre-commit: + name: pre-commit (please install locally!) + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..35d437f1a51 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml diff --git a/asciidoc.yaml b/asciidoc.yaml index 1f80236c979..15b6d79bf04 100644 --- a/asciidoc.yaml +++ b/asciidoc.yaml @@ -1,7 +1,7 @@ package: name: asciidoc version: 10.2.1 - epoch: 1 + epoch: 2 description: "Text based documentation" copyright: - license: GPL-2.0-or-later @@ -33,7 +33,7 @@ pipeline: - uses: patch with: - patches: allow-specify-python.yaml + patches: allow-specify-python.patch - runs: | autoreconf -fi diff --git a/asciidoc/allow-specify-python.yaml b/asciidoc/allow-specify-python.patch similarity index 100% rename from asciidoc/allow-specify-python.yaml rename to asciidoc/allow-specify-python.patch