feat(action): add support for non-main branch releases

- Introduce an input to allow releases from non-main branches
- Update logic to conditionally permit version checks outside 'main'
This commit is contained in:
2025-06-29 14:09:24 +02:00
parent 40ca5c987d
commit 1d9659b6df
2 changed files with 10 additions and 2 deletions

View File

@@ -14,6 +14,10 @@ inputs:
description: "Commit-Autore-Mail"
required: false
default: ""
allow-non-main-release:
description: "Allow publishing releases from branches other than 'main'."
required: false
default: "false"
runs:
using: "composite"
@@ -25,6 +29,7 @@ runs:
GITHUB_EVENT_BEFORE: ${{ github.event.before || '' }}
GITHUB_SHA: ${{ github.sha || '' }}
GITHUB_REF: ${{ github.ref || '' }}
ALLOW_NON_MAIN_RELEASE: ${{ inputs.allow-non-main-release }}
run: |
${{ github.action_path }}/scripts/detect-version-change.sh