diff --git a/.github/workflows/lint-changelog.yaml b/.github/workflows/lint-changelog.yaml new file mode 100644 index 0000000..1059626 --- /dev/null +++ b/.github/workflows/lint-changelog.yaml @@ -0,0 +1,16 @@ +name: Changelog Linter + +on: + pull_request: + +jobs: + lint-changelog: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Run changelog linter + uses: MalteHerrmann/changelog-lint-action@0918ef12e6dc06adce0743e1c6c13707a7c20323 + diff --git a/CHANGELOG.md b/CHANGELOG.md index 7012d9c..bb677b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,10 @@ This changelog was created using the `clu` binary (https://github.com/MalteHerrmann/changelog-utils). --> - # Changelog ## Unreleased +### Features + +- (ci) [#1](https://github.com/MalteHerrmann/changelog-lint-action/pull/1) Add action implementation. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5453e80 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ghcr.io/malteherrmann/changelog-utils:latest + +WORKDIR /github/workspace + +CMD ["lint"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..8ba5e2c --- /dev/null +++ b/action.yml @@ -0,0 +1,9 @@ +name: 'Changelog Linter' +description: 'A linter for your changelog. Based on https://github.com/MalteHerrmann/changelog-utils' +author: 'Malte Herrmann' +outputs: + linter-results: + description: 'Changelog linter output' +runs: + using: 'docker' + image: 'Dockerfile'