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:
@@ -52,13 +52,13 @@ runs:
|
|||||||
"${{ inputs.author_email }}"
|
"${{ inputs.author_email }}"
|
||||||
|
|
||||||
- name: Generate and commit changelog (unreleased)
|
- 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
||||||
|
|
||||||
- name: Release from VERSION
|
- 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
|
shell: bash
|
||||||
env:
|
env:
|
||||||
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
||||||
|
Reference in New Issue
Block a user