Skip to content

Commit 8c2c7c0

Browse files
authored
ci(release-changelog.yml): add changelog generator
This workflow generate changelog for releases.
1 parent cfa793d commit 8c2c7c0

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on release tags
8+
push:
9+
tags:
10+
- '*'
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "release"
18+
release:
19+
if: startsWith(github.ref, 'refs/tags/')
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
- name: Build Changelog
25+
id: github_release
26+
uses: mikepenz/release-changelog-builder-action@v2.7.2
27+
with:
28+
# configuration: "changelog_generator_configure.json"
29+
owner: "ghasemdev"
30+
repo: "git-commit-template"
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Create Release
35+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
36+
uses: actions/create-release@v2
37+
with:
38+
tag_name: ${{ github.ref }}
39+
release_name: ${{ github.ref }}
40+
body: ${{steps.github_release.outputs.changelog}}
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)