From 8c0d115c437e15c464a2a6f6c1437f9d891c6829 Mon Sep 17 00:00:00 2001 From: hamzamahmood Date: Thu, 11 May 2023 15:16:43 +0500 Subject: [PATCH 1/4] ci(update-release-script): fix failing delete intermediate branch step --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96a3446b..841d3ba2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,10 +53,9 @@ jobs: branch: main - name: Delete the intermediate branch if: steps.release.outputs.exit_code == 0 - uses: dawidd6/action-delete-branch@v3 - with: - github_token: ${{github.token}} - branches: project-version-update + run: | + git branch -D project-version-update &>/dev/null || true + git push origin :project-version-update &>/dev/null || true - name: Create tag if: steps.release.outputs.exit_code == 0 id: tag_version From 8f36885723d85e233170b5ffe480108b6c288ae4 Mon Sep 17 00:00:00 2001 From: hamzamahmood Date: Thu, 11 May 2023 15:25:07 +0500 Subject: [PATCH 2/4] update the ci version upadate message for commiting the version change --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 841d3ba2..ca64458f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: uses: devops-infra/action-commit-push@master with: github_token: "${{ secrets.GITHUB_TOKEN }}" - commit_message: "ci(release-version): update pom.xml [ci skip]" + commit_message: "ci(release-version) update pom.xml [ci skip]" force: false target_branch: project-version-update - name: Push the version change From 655aeb71aeaf5370106ae5b68e47f6a5de9f8aed Mon Sep 17 00:00:00 2001 From: hamzamahmood Date: Thu, 11 May 2023 16:08:11 +0500 Subject: [PATCH 3/4] add run name for release action --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca64458f..9926fd3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ name: Release To Maven Central - +run-name: ${{ github.event.inputs.Title }} (${{ github.event.inputs.Version }}) # Run workflow on commits to the `main` branch on: workflow_dispatch: From 00ed2ecb5a4b1929444e9decbf5d41c98ba311cf Mon Sep 17 00:00:00 2001 From: hamzamahmood Date: Thu, 11 May 2023 16:47:42 +0500 Subject: [PATCH 4/4] remove title from the GH Action and rename the changelog title to Version x.y.z --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9926fd3b..6940e29f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ name: Release To Maven Central -run-name: ${{ github.event.inputs.Title }} (${{ github.event.inputs.Version }}) +run-name: Release ${{ github.event.inputs.Version }} # Run workflow on commits to the `main` branch on: workflow_dispatch: @@ -8,10 +8,6 @@ on: description: "Version to be released in format: x.y.z, where x => major version, y => minor version and z => patch version" required: true default: "0.1.0" - Title: - description: "Title of the release" - required: true - default: "Improving API developer experience" jobs: publish: @@ -70,5 +66,5 @@ jobs: uses: ncipollo/release-action@v1 with: tag: ${{ steps.tag_version.outputs.new_tag }} - name: Release ${{ github.event.inputs.Title }} + name: Version ${{ github.event.inputs.Version }} body: ${{ steps.tag_version.outputs.changelog }}