From 2bb178e48a785851d3e66694c175b1954c304dbe Mon Sep 17 00:00:00 2001 From: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Date: Sun, 16 Jun 2024 22:43:24 +0200 Subject: [PATCH] feat(ci): Add action implementation (#1) * add dockerfile * add action yml and use in CI workflow * add changelog entry * adjust ci action * remove v1 from used action * update --- .github/workflows/lint-changelog.yaml | 16 ++++++++++++++++ CHANGELOG.md | 4 +++- Dockerfile | 5 +++++ action.yml | 9 +++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint-changelog.yaml create mode 100644 Dockerfile create mode 100644 action.yml 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'