From a467a07b8b3d9b92baec89bd9f3d9b95353f3195 Mon Sep 17 00:00:00 2001 From: Lasse <16150076+lnist@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:50:50 +0100 Subject: [PATCH] feat(build): Verify CHANGELOG is updated (#1738) --- .github/workflows/ci.yml | 28 +++++----------------------- CHANGELOG.md | 2 ++ 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a7d8e71f..e65065cf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,13 +19,17 @@ env: NODE_ENV: test jobs: - mangrove-js: + check: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + # == verify changelog has been updated == + - name: Check changelog updated + uses: mangrovedao/.github/.github/actions/changelog-updated@master + - name: Yarn setup (caching yarn dependencies) uses: actions/setup-node@v4 with: @@ -81,25 +85,3 @@ jobs: path-to-lcov: ./coverage/lcov.info base-path: . flag-name: js - - # ==== final "check" job, using alls-green to have one single job to check for green workflow ==== - # see https://github.com/re-actors/alls-green - - check: - # NB: We're experimenting with using `!cancelled()` instead of `always()` in an attempt to avoid - # cancelled workflow runs blocking dependabot PR's from merging. - # Workflow runs are often cancelled automatically when a newer run is triggered. - # The problem appears to be that the `check` job runs and fails if the workflow is cancelled. - # if: always() - if: ${{ !cancelled() }} - - needs: - - mangrove-js - - runs-on: ubuntu-latest - - steps: - - name: Decide whether the needed jobs succeeded or failed - uses: re-actors/alls-green@release/v1 - with: - jobs: ${{ toJSON(needs) }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e6b09b638..e24e88a43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Next version - Upgrade to @mangrovedao/mangrove-deployments v2.0.0 +- feat: Updated CI to check `CHANGELOG.md` is updated with each PR +- fix: Able to handle backticks in changelog when releasing. # 2.0.3