From 227bc716d898124e88e8bbe77c81d709c329dd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 27 Mar 2020 18:44:19 +0100 Subject: [PATCH] Add a Github Action to ensure the CHANGELOG is updated in PRs --- .github/workflows/check-updated-changelog.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/check-updated-changelog.yml diff --git a/.github/workflows/check-updated-changelog.yml b/.github/workflows/check-updated-changelog.yml new file mode 100644 index 000000000..eb88f9108 --- /dev/null +++ b/.github/workflows/check-updated-changelog.yml @@ -0,0 +1,15 @@ +name: Check if the CHANGELOG.md has been updated + +on: [pull_request] + +jobs: + check: + name: Test on ${{ matrix.os }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Checking the CHANGELOG.md has been updated in this PR + run: | + set -e + git fetch origin ${{ github.base_ref }} + git diff --name-only origin/${{ github.base_ref }} | grep -q CHANGELOG.md