-
-
Notifications
You must be signed in to change notification settings - Fork 36
41 lines (36 loc) · 1.22 KB
/
changelog-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# Check CHANGELOG.md file updated for every pull request
name: Changelog Check
on:
pull_request:
paths-ignore:
- "README.md"
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
jobs:
changelog:
name: Changelog Update Check
runs-on: ubuntu-latest
steps:
- run: echo "🚀 Job automatically triggered by ${{ github.event_name }}"
- run: echo "🐧 Job running on ${{ runner.os }} server"
- run: echo "🐙 Using ${{ github.ref }} branch from ${{ github.repository }} repository"
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
docs
overrides
.github
CHANGELOG.md
- run: echo "🐙 Sparse Checkout of ${{ github.repository }} repository to the CI runner."
# Changelog Enforcer
- name: Changelog Enforcer
uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: "CHANGELOG.md"
skipLabels: "skip-changelog-check"
# Summary and status
- run: echo "🎨 Changelog Enforcer quality checks completed"
- run: echo "🍏 Job status is ${{ job.status }}."