项目作者: nextreleaseio

项目描述 :
Github Action to automatically generate a changelog from Next Release
高级语言: JavaScript
项目地址: git://github.com/nextreleaseio/changelog-generator-action.git
创建时间: 2019-12-02T21:36:47Z
项目社区:https://github.com/nextreleaseio/changelog-generator-action

开源协议:MIT License

下载


Next Release Changelog Generator Action

WARNING: This is pre-release, experimental software that should only be used by those with adventurous spirits.

This Github action will automatically populate a Changelog with the details from your release body.

This is built by the team at Next Release, but will work with any process that creates a release.

Quick Start

  1. on:
  2. release:
  3. types: [published]
  4. jobs:
  5. generate_changelog:
  6. runs-on: ubuntu-latest # Configure this based on your needs
  7. name: Update Changelog
  8. steps:
  9. - name: Create Changelog.md
  10. id: changelog
  11. uses: nextreleaseio/changelog-generator-action@master
  12. with:
  13. token: ${{ secrets.GITHUB_TOKEN }} # Required
  14. changelog: "CHANGELOG.md" # optional, default: CHANGELOG.md
  15. use_pullrequest: true # can be false is you don't enable branch protection
  16. branch_name: ${{ join('changelog-', github.release.tag_name) }} # if `use_pullrequest` is true, will use this as default

How It Works

This action works by reading the release generated by Next Release to generate a changelog in your repository.

NOTE: This will create a new commit in your repository!

Configuration Options

token: You must explicitly provide your ${{ secretes.GITHUB_TOKEN }} for this action to access your repository.

changelog: This specificies the path and filename (relative to the project root) of your changelog. The default is CHANGELOG.md.