-
Notifications
You must be signed in to change notification settings - Fork 77
26 lines (24 loc) · 1022 Bytes
/
changelog.yml
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
name: "Changelog Updated"
on:
pull_request:
# The specific activity types are listed here to include "labeled" and "unlabeled"
# (which are not included by default for the "pull_request" trigger).
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels,
# as defined in the (optional) "skipLabels" property.
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
jobs:
# Enforces the update of a changelog file on every pull request.
changelog:
runs-on: ubuntu-latest
steps:
# CHANGELOG.md
- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: 'Skip Changelog'
versionPattern: '## \\[((v|V)?\\d*\\.\\d*\\.\\d*-?\\w*|unreleased|Unreleased|UNRELEASED|Dev)\\]'
# readme.txt
- uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: 'readme.txt'
skipLabels: 'Skip Changelog'
versionPattern: '^=\\s*((v|V)?\\d+\\.\\d+\\.\\d+|Dev)\\s*='