File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Automatic Changelog Generator for tag
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ - ' !v*-alpha*'
8+
9+ jobs :
10+ release :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@master
15+ - name : Set Environment
16+ run : |
17+ echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
18+
19+ - name : Get previous release tag based on type
20+ id : prevrelease
21+ uses : ibexa/version-logic-action@master
22+ with :
23+ currentTag : ${{ env.BUILD_TAG }}
24+
25+ - name : Generate changelog
26+ id : changelog
27+ uses : ibexa/changelog-generator-action@v2
28+ with :
29+ github_token : ${{ secrets.GITHUB_TOKEN }}
30+ jira_token : ${{ secrets.JIRA_TOKEN }}
31+ currentTag : ${{ env.BUILD_TAG }}
32+ previousTag : ${{ steps.prevrelease.outputs.previousTag }}
33+
34+ - name : Print the changelog
35+ run : echo "${{ steps.changelog.outputs.changelog }}"
36+
37+ - name : Create Release
38+ id : create_release
39+ uses : zendesk/action-create-release@v1
40+ with :
41+ tag_name : ${{ env.BUILD_TAG }}
42+ body : |
43+ ${{ steps.changelog.outputs.changelog }}
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments