fix(action): update conditions for version detection

- Remove branch-specific checks from conditional statements
- Simplify logic for changelog generation and release steps
- Ensure consistent behavior regardless of branch context
This commit is contained in:
2025-06-29 14:13:18 +02:00
parent f44f457e6b
commit c25b2e9cd5

View File

@@ -52,13 +52,13 @@ runs:
"${{ inputs.author_email }}"
- name: Generate and commit changelog (unreleased)
if: steps.detect.outputs.version_changed == 'false' || github.ref != 'refs/heads/main'
if: steps.detect.outputs.version_changed == 'false'
shell: bash
run: |
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
- name: Release from VERSION
if: steps.detect.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
if: steps.detect.outputs.version_changed == 'true'
shell: bash
env:
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}