From 4b3066759eb2bd4b4487e989603d24deb4903f66 Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi Date: Wed, 4 May 2022 14:46:48 +0200 Subject: [PATCH 1/2] IBX-2822: Added changelog generator --- .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 00000000000..278fd78f404 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} + From 8be94f8d10b469f735d9a1293f68dd97ecf8d727 Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Wed, 4 May 2022 15:03:22 +0200 Subject: [PATCH 2/2] Added PR assigner workflow --- .github/workflows/pr-assign.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/pr-assign.yaml diff --git a/.github/workflows/pr-assign.yaml b/.github/workflows/pr-assign.yaml new file mode 100644 index 00000000000..302423e306a --- /dev/null +++ b/.github/workflows/pr-assign.yaml @@ -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 }}