From 064677870b9ebac04d2f264fede191205faa0614 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Mon, 24 Nov 2025 12:35:04 +0100 Subject: [PATCH] fix(ci): use ACTION_PATH for git-cliff config generation --- action.yml | 2 ++ scripts/generate-git-cliff-config.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ab24bb8..8d1cdf4 100644 --- a/action.yml +++ b/action.yml @@ -40,6 +40,8 @@ runs: ${{ github.action_path }}/scripts/read-cliff-version.sh - name: Generate git-cliff config + env: + ACTION_PATH: ${{ github.action_path }} shell: bash run: | ${{ github.action_path }}/scripts/generate-git-cliff-config.sh diff --git a/scripts/generate-git-cliff-config.sh b/scripts/generate-git-cliff-config.sh index 6dc0f3c..2d5f53a 100755 --- a/scripts/generate-git-cliff-config.sh +++ b/scripts/generate-git-cliff-config.sh @@ -6,7 +6,7 @@ CLIFF_CONFIG="cliff.toml" # Check if cliff.toml exists, if not, copy cliff.toml.template from the Action if [ ! -f "$CLIFF_CONFIG" ]; then echo "cliff.toml not found, using template from action." - cp "${GITHUB_ACTION_PATH:-${github_action_path:-${{ github.action_path }}}}/cliff.toml.template" "$CLIFF_CONFIG" + cp "$ACTION_PATH/cliff.toml.template" "$CLIFF_CONFIG" # Replace placeholders in the copied config OWNER="${GITHUB_REPOSITORY%/*}" REPO="${GITHUB_REPOSITORY#*/}"