Skip to content

Commit 904edf1

Browse files
authored
Merge pull request #281 from NathanReb/changelog-check
Add @emillon changelog check action
2 parents ec7d52f + f30d1c0 commit 904edf1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Changelog check
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [ opened, synchronize, reopened, labeled, unlabeled ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-18.04
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: git diff
16+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no changelog') }}
17+
env:
18+
BASE_REF: ${{ github.event.pull_request.base.ref }}
19+
run: |
20+
! git diff --exit-code origin/$BASE_REF -- CHANGES.md

0 commit comments

Comments
 (0)