diff options
author | 2023-07-26 02:09:16 +0200 | |
---|---|---|
committer | 2023-07-26 02:10:01 +0200 | |
commit | 355ef8188a34d63eb0d93bd8b3329f6a15e68e59 (patch) | |
tree | a5b6da090bfb34041f802754d29efa4299ad732c /.github/workflows/verify.yml | |
parent | f21958c6431b9cb0dc69eb407a0663daf7edec78 (diff) | |
download | iced-355ef8188a34d63eb0d93bd8b3329f6a15e68e59.tar.gz iced-355ef8188a34d63eb0d93bd8b3329f6a15e68e59.tar.bz2 iced-355ef8188a34d63eb0d93bd8b3329f6a15e68e59.zip |
Add workflow to verify `CHANGELOG` is always up-to-date
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/verify.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 00000000..f7342ac1 --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,17 @@ +name: Verify +on: + pull_request: + branches: + - master +jobs: + changelog: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Check `CHANGELOG.md` has changes + run: | + ! git diff --exit-code master HEAD CHANGELOG.md + - name: Check `CHANGELOG.md` has PR author + if: ${{ github.event.pull_request.user.name != 'hecrj' }} + run: | + sed -n '/## \[Unreleased\]/,/^## /p' CHANGELOG.md | sed -n '/Many thanks to.../,//p' | grep '@${{ github.event.pull_request.user.name }}' |