From c609595c44dad4c764f26fdbe98fa3ef9f9c6256 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 28 Sep 2024 14:45:50 -0400 Subject: [PATCH] feat: Add changelog from release notes Signed-off-by: Diwank Singh Tomer --- .github/workflows/changelog-ci.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/changelog-ci.yml b/.github/workflows/changelog-ci.yml index 2a1ab6c30..ff99828a3 100644 --- a/.github/workflows/changelog-ci.yml +++ b/.github/workflows/changelog-ci.yml @@ -1,21 +1,24 @@ -name: Changelog CI +name: Changelog on release -# TODO: This is currently not working. Need to fix it on: - pull_request: - types: [ opened, synchronize ] + release: + types: [published] jobs: - build: + changelog: runs-on: ubuntu-latest steps: # Checks-out your repository - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: dev - - name: Run Changelog CI - uses: saadmk11/changelog-ci@v1.1.2 + # Generate changelog from release notes + - uses: rhysd/changelog-from-release/action@v3 with: - changelog_filename: CHANGELOG.md - # config_file: changelog-ci-config.json + file: CHANGELOG.md github_token: ${{ secrets.GITHUB_TOKEN }} + pull_request: true + \ No newline at end of file