diff options
author | 2023-07-26 02:44:07 +0200 | |
---|---|---|
committer | 2023-07-26 02:44:07 +0200 | |
commit | 6d5b69d307f1a65b1e9ad3baa5930aba67cd6293 (patch) | |
tree | 378be43acfabbdbf2d9bb0226b8bd9893fbdbbe8 | |
parent | c08b3f58aa76537eac2fdc0f0b5691f058aac3fc (diff) | |
parent | 6531f2789702d3490b3e7b74686c03954fd14a04 (diff) | |
download | iced-6d5b69d307f1a65b1e9ad3baa5930aba67cd6293.tar.gz iced-6d5b69d307f1a65b1e9ad3baa5930aba67cd6293.tar.bz2 iced-6d5b69d307f1a65b1e9ad3baa5930aba67cd6293.zip |
Merge pull request #1970 from iced-rs/ci/verify-changelog
Add workflow to verify `CHANGELOG` is always up-to-date
-rw-r--r-- | .github/workflows/verify.yml | 19 | ||||
-rw-r--r-- | CHANGELOG.md | 1 |
2 files changed, 20 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 }}' diff --git a/CHANGELOG.md b/CHANGELOG.md index 73a844dd..b7174bb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Viewport` argument to `Widget::on_event`. [#1956](https://github.com/iced-rs/iced/pull/1956) - Nix instructions to `DEPENDENCIES.md`. [#1859](https://github.com/iced-rs/iced/pull/1859) - Loading spinners example. [#1902](https://github.com/iced-rs/iced/pull/1902) +- Workflow that verifies `CHANGELOG` is always up-to-date. [#1970](https://github.com/iced-rs/iced/pull/1970) ### Changed - Updated `wgpu` to `0.16`. [#1807](https://github.com/iced-rs/iced/pull/1807) |