diff --git a/.github/workflows/automation-auto-release.yml b/.github/workflows/automation-auto-release.yml index 7b4722f..4585a0d 100644 --- a/.github/workflows/automation-auto-release.yml +++ b/.github/workflows/automation-auto-release.yml @@ -7,6 +7,10 @@ on: required: false type: string default: "" + enable_major_minor_tag: + required: false + type: boolean + default: false outputs: semver: description: "The semantic version of the release" @@ -28,3 +32,12 @@ jobs: with: bump_version_scheme: patch tag_prefix: ${{ inputs.tag_prefix }} + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Also produce major and minor version tags + if: ${{ inputs.enable_major_minor_tag && steps.auto-release-id.outputs.tag_name != '' }} + uses: haya14busa/action-update-semver@v1.5.1 + with: + major_version_tag_only: false + tag: ${{ steps.auto-release-id.outputs.tag_name }} diff --git a/.github/workflows/implementation-auto-release.yaml b/.github/workflows/implementation-auto-release.yaml index cb4d4cb..1cdfe14 100644 --- a/.github/workflows/implementation-auto-release.yaml +++ b/.github/workflows/implementation-auto-release.yaml @@ -13,3 +13,5 @@ on: jobs: auto-release: uses: ./.github/workflows/automation-auto-release.yml + with: + enable_major_minor_tag: true