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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user