From e2f6dc848740e82d3cce3403bad8540c852f72a4 Mon Sep 17 00:00:00 2001 From: meriy100 Date: Thu, 4 Apr 2024 15:33:53 +0900 Subject: [PATCH] =?UTF-8?q?feat(.github/actions/create-release-pr-for-gem)?= =?UTF-8?q?:=20tag-prefix=20=E3=82=92=E6=8C=87=E5=AE=9A=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=80=81=E4=BB=BB=E6=84=8F=E3=81=AE=20=E3=83=97=E3=83=AC?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=83=E3=82=AF=E3=82=B9=E3=81=A7=E3=82=BF?= =?UTF-8?q?=E3=82=B0=E3=82=92=E6=89=93=E3=81=A6=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/create-release-pr-for-gem/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/create-release-pr-for-gem/action.yml b/.github/actions/create-release-pr-for-gem/action.yml index dc5b4c0..49a0292 100644 --- a/.github/actions/create-release-pr-for-gem/action.yml +++ b/.github/actions/create-release-pr-for-gem/action.yml @@ -16,6 +16,9 @@ inputs: commit-user-name: description: The name of the user who created the commit default: "github-actions[bot]" + tag-prefix: + description: The tag prefix + default: "v" runs: using: "composite" @@ -36,6 +39,7 @@ runs: git-push: false skip-commit: true skip-tag: true + tab-prefix: ${{ inputs.tag-prefix }} github-token: ${{ env.GITHUB_TOKEN }} - name: Commit version up commit if: ${{ steps.changelog.outputs.skipped == 'false' }} @@ -48,12 +52,12 @@ runs: printf "# frozen_string_literal: true\n\nmodule ${{ inputs.version-module-name }}\n VERSION = '$VERSION'\nend\n" > ${{ inputs.version-file-path }} git add ${{ inputs.version-file-path }} git commit -m "chore: bump version to v$VERSION" - git push origin release/v$VERSION + git push origin release/${{ inputs.tag-prefix }}$VERSION shell: bash - name: Create Pull Request if: ${{ steps.changelog.outputs.skipped == 'false' }} env: GH_TOKEN: ${{ env.GITHUB_TOKEN }} run: | - gh pr create --title "chore: Release version to v${{ steps.changelog.outputs.version }}" --body "${{ steps.changelog.outputs.clean_changelog }}" --base ${{ inputs.base-branch }} --head release/v${{ steps.changelog.outputs.version }} + gh pr create --title "chore: Release version to v${{ steps.changelog.outputs.version }}" --body "${{ steps.changelog.outputs.clean_changelog }}" --base ${{ inputs.base-branch }} --head release/${{ inputs.tag-prefix }}${{ steps.changelog.outputs.version }} shell: bash