Skip to content

Commit 1b437d5

Browse files
authored
SNOW-756525 Add changelog check in CI (#1476)
1 parent 277d744 commit 1b437d5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/changelog.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Changelog Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, labeled, unlabeled]
6+
branches:
7+
- main
8+
9+
jobs:
10+
check_change_log:
11+
runs-on: ubuntu-latest
12+
if: ${{!contains(github.event.pull_request.labels.*.name, 'NO-CHANGELOG-UPDATES')}}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Ensure DESCRIPTION.md is updated
20+
run: git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -wq "DESCRIPTION.md"

0 commit comments

Comments
 (0)