Skip to content

Commit

Permalink
Merge pull request #10 from ibexa/feature/IBX-2822
Browse files Browse the repository at this point in the history
IBX-2822: Added changelog generator
  • Loading branch information
ibexa-yuna authored May 4, 2022
2 parents 79f3225 + 8be94f8 commit 213bed2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pr-assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Assign Pull Request to maintainers

on:
pull_request_target:

jobs:
assign:
uses: ibexa/gh-workflows/.github/workflows/pr-assign.yml@main
secrets:
robot-token: ${{ secrets.EZROBOT_PAT }}
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Automatic Changelog Generator for tag

on:
push:
tags:
- 'v*'
- '!v*-alpha*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set Environment
run: |
echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Get previous release tag based on type
id: prevrelease
uses: ibexa/version-logic-action@master
with:
currentTag: ${{ env.BUILD_TAG }}

- name: Generate changelog
id: changelog
uses: ibexa/changelog-generator-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
jira_token: ${{ secrets.JIRA_TOKEN }}
currentTag: ${{ env.BUILD_TAG }}
previousTag: ${{ steps.prevrelease.outputs.previousTag }}

- name: Print the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"

- name: Create Release
id: create_release
uses: zendesk/action-create-release@v1
with:
tag_name: ${{ env.BUILD_TAG }}
body: |
${{ steps.changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 213bed2

Please sign in to comment.