From c25b2e9cd551e923b84cd144b818940fd5e1ccff Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 29 Jun 2025 14:13:18 +0200 Subject: [PATCH] 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 --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4771cb0..472200d 100644 --- a/action.yml +++ b/action.yml @@ -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 || '' }}