From 9de37f3b91187d2ea61acd25a55737fbe8146f4d Mon Sep 17 00:00:00 2001 From: Willi Carlsen Date: Tue, 20 Oct 2026 08:57:02 +0200 Subject: [PATCH 1/2] Add feature to enable major and minor tagging to auto-release and enable it in this repo Signed-off-by: Willi Carlsen --- .github/workflows/automation-auto-release.yml | 10 ++++++++++ .github/workflows/implementation-auto-release.yaml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/automation-auto-release.yml b/.github/workflows/automation-auto-release.yml index 7b4722f..e19f6d8 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,9 @@ jobs: with: bump_version_scheme: patch tag_prefix: ${{ inputs.tag_prefix }} + - 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 From 36bfe0991eb87d3e0dd13e0343b5ec05c5c70cda Mon Sep 17 00:00:00 2001 From: Willi Carlsen Date: Tue, 20 Oct 2026 10:16:17 +0200 Subject: [PATCH 2/2] Added required checkout with fetch_depth = 0, otherwise the tags isn't available Signed-off-by: Willi Carlsen --- .github/workflows/automation-auto-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/automation-auto-release.yml b/.github/workflows/automation-auto-release.yml index e19f6d8..4585a0d 100644 --- a/.github/workflows/automation-auto-release.yml +++ b/.github/workflows/automation-auto-release.yml @@ -32,6 +32,9 @@ 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