Skip to content

Commit

Permalink
feat: Add changelog from release notes (#530)
Browse files Browse the repository at this point in the history
Update GitHub Actions workflow to generate changelog from release notes on release event.

  - **Workflow Changes**:
    - Renames workflow from `Changelog CI` to `Changelog on release` in `.github/workflows/changelog-ci.yml`.
    - Changes trigger from `pull_request` to `release` with type `published`.
  - **Actions**:
    - Updates `actions/checkout` from `v2` to `v4` with `fetch-depth: 0` and `ref: dev`.
    - Replaces `saadmk11/[email protected]` with `rhysd/changelog-from-release/action@v3` to generate changelog from release notes.
  • Loading branch information
creatorrr committed Sep 30, 2024
1 parent 55efe4f commit 0d6acda
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/changelog-ci.yml
Original file line number Diff line number Diff line change
@@ -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-[email protected]
# 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

0 comments on commit 0d6acda

Please sign in to comment.