Skip to content

Commit 882d3c5

Browse files
committed
Merge remote-tracking branch 'origin/3.2' into 3.3
2 parents c98d1fd + 52ab5f7 commit 882d3c5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 }}

0 commit comments

Comments
 (0)