From b75e4121928131c1a1c0cbdea954a4fd602edd1a Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 29 Jun 2025 13:35:28 +0200 Subject: [PATCH] refactor(action): simplify script invocation syntax - Replaces redundant `bash` prefix with direct script execution - Improves readability and reduces command verbosity --- action.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 419bf28..eb764cc 100644 --- a/action.yml +++ b/action.yml @@ -26,33 +26,36 @@ runs: GITHUB_SHA: ${{ github.sha || '' }} GITHUB_REF: ${{ github.ref || '' }} run: | - bash ${{ github.action_path }}/scripts/detect-version-change.sh + ${{ github.action_path }}/scripts/detect-version-change.sh - name: Read CLIFF_VERSION shell: bash id: cliff_version - run: bash ${{ github.action_path }}/scripts/read-cliff-version.sh + run: | + ${{ github.action_path }}/scripts/read-cliff-version.sh - name: Install git-cliff shell: bash run: | - bash ${{ github.action_path }}/scripts/install-git-cliff.sh "${{ steps.cliff_version.outputs.version }}" + ${{ github.action_path }}/scripts/install-git-cliff.sh "${{ steps.cliff_version.outputs.version }}" - name: Set up git shell: bash run: | - bash ${{ github.action_path }}/scripts/setup-git.sh \ + ${{ github.action_path }}/scripts/setup-git.sh \ "${{ inputs.author_name }}" \ "${{ inputs.author_email }}" - name: Generate and commit changelog (unreleased) if: steps.detect.outputs.version_changed == 'false' || github.ref != 'refs/heads/main' shell: bash - run: bash ${{ github.action_path }}/scripts/generate-unreleased-changelog.sh + 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' shell: bash env: RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }} - run: bash ${{ github.action_path }}/scripts/release-from-version.sh + run: | + ${{ github.action_path }}/scripts/release-from-version.sh