From a8dcf1c901bf820f2a6f9d0efa9dc91514c9c5cf Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Tue, 13 Apr 2021 17:14:06 +0200 Subject: [PATCH 1/2] IBX-105: Added automatic release creation on tag push (#212) --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..980c6701e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Automatic Changelog Generator for tag + +on: + push: + tags: + - 'v*' + - '!v*-alpha*' + - '!v*-beta*' + - '!v*-rc*' + +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@master + with: + github_token: ${{ secrets.GITHUB_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 }} From 7e7704ec6ef994025664664e707ad9debd5d313f Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Wed, 12 May 2021 11:15:02 +0200 Subject: [PATCH 2/2] IBX-261: Updated changelog generator (#213) --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 980c6701e..ab450b394 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,6 @@ on: tags: - 'v*' - '!v*-alpha*' - - '!v*-beta*' - - '!v*-rc*' jobs: release: @@ -26,9 +24,10 @@ jobs: - name: Generate changelog id: changelog - uses: ibexa/changelog-generator-action@master + 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 }}