Add action to check if changelog was updated #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changelog Updated | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
changelog_updated: | |
name: Changelog Updated | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Check if CHANGELOG.md was changed | |
run: "! git diff --name-only --exit-code HEAD^1 HEAD CHANGELOG.md" |