Skip to content

Commit 061dfb3

Browse files
Ramkumar Chinchanirchincha
authored andcommitted
release: add github action to automatically generate changelog
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
1 parent 9a51ce4 commit 061dfb3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: create-release
2+
on:
3+
push:
4+
# Sequence of patterns matched against refs/tags
5+
tags:
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v1.0.0
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# To use this repository's private action, you must check out the repository
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Generate changelog
16+
id: changelog
17+
uses: metcalfc/changelog-generator@v1.0.1
18+
with:
19+
myToken: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Create Release
21+
id: create_release
22+
uses: actions/create-release@latest
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref }}
27+
release_name: Release ${{ github.ref }}
28+
body: ${{ steps.changelog.outputs.changelog }}
29+
draft: false
30+
prerelease: false

0 commit comments

Comments
 (0)