summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/verify.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml
new file mode 100644
index 00000000..3de8a21c
--- /dev/null
+++ b/.github/workflows/verify.yml
@@ -0,0 +1,19 @@
+name: Verify
+on:
+ pull_request:
+ branches:
+ - master
+jobs:
+ changelog:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Check `CHANGELOG.md` has changes
+ run: |
+ ! git diff --exit-code origin/master HEAD -- CHANGELOG.md
+ - name: Check `CHANGELOG.md` has PR author
+ if: ${{ github.event.pull_request.user.login != 'hecrj' }}
+ run: |
+ sed -n '/## \[Unreleased\]/,/^## /p' CHANGELOG.md | sed -n '/Many thanks to.../,//p' | grep '@${{ github.event.pull_request.user.login }}'