Skip to content

Commit

Permalink
feat(ci): Add action implementation (#1)
Browse files Browse the repository at this point in the history
* add dockerfile

* add action yml and use in CI workflow

* add changelog entry

* adjust ci action

* remove v1 from used action

* update
  • Loading branch information
MalteHerrmann authored Jun 16, 2024
1 parent 1a60b18 commit 2bb178e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/lint-changelog.yaml
Original file line number Diff line number Diff line change
@@ -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

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/malteherrmann/changelog-utils:latest

WORKDIR /github/workspace

CMD ["lint"]
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 2bb178e

Please sign in to comment.