From 75ffa41fe91f577558368870e76922cc9f2866ae Mon Sep 17 00:00:00 2001 From: Denis Smetannikov Date: Thu, 6 May 2021 14:00:43 +0300 Subject: [PATCH] Auto building changelog --- .github/workflows/changelog.yml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..4aad833 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,39 @@ +# +# JBZoo Toolbox - CI-Report-Converter +# +# This file is part of the JBZoo Toolbox project. +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +# +# @package CI-Report-Converter +# @license MIT +# @copyright Copyright (C) JBZoo.com, All rights reserved. +# @link https://github.com/JBZoo/CI-Report-Converter +# + +name: 'Changelog' + +on: + push: + tags: + - '*' + +jobs: + release: + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: ${{steps.github_release.outputs.changelog}} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}