mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
chore: add antsibull-changelog lint pre-commit hook (#247)
* chore: add antsibull-changelog lint pre-commit hook * ci: remove antsibull-changelog-lint workflow
This commit is contained in:
parent
8672df2a49
commit
09c521cb3c
2 changed files with 11 additions and 20 deletions
20
.github/workflows/check-changelog-fragments.yml
vendored
20
.github/workflows/check-changelog-fragments.yml
vendored
|
|
@ -1,20 +0,0 @@
|
|||
name: antsibull-changelog tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
name: antsibull-changelog-lint
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install antsibull-changelog
|
||||
- name: test with lint
|
||||
run: antsibull-changelog lint
|
||||
|
|
@ -41,3 +41,14 @@ repos:
|
|||
rev: 23.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: antsibull-changelog-lint
|
||||
name: antsibull-changelog lint
|
||||
language: python
|
||||
additional_dependencies:
|
||||
- antsibull-changelog==0.21.0
|
||||
entry: antsibull-changelog lint
|
||||
pass_filenames: false
|
||||
files: ^changelogs/.*$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue