fix(ci): use ACTION_PATH for git-cliff config generation
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s

This commit is contained in:
2025-11-24 12:35:04 +01:00
parent f6713d9d6d
commit 064677870b
2 changed files with 3 additions and 1 deletions

View File

@@ -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#*/}"