Skip to content

Commit

Permalink
SNOW-954008 Add changelog check
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pfus committed Oct 30, 2023
1 parent 8479309 commit ecc4f38
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Changelog Check

on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches:
- master

jobs:
check_change_log:
runs-on: ubuntu-latest
if: ${{!contains(github.event.pull_request.labels.*.name, 'NO-CHANGELOG-UPDATES')}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Ensure DESCRIPTION.md is updated
run: git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -wq "DESCRIPTION.md"

0 comments on commit ecc4f38

Please sign in to comment.