fix(ci): use ACTION_PATH for git-cliff config generation
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
This commit is contained in:
@@ -40,6 +40,8 @@ runs:
|
|||||||
${{ github.action_path }}/scripts/read-cliff-version.sh
|
${{ github.action_path }}/scripts/read-cliff-version.sh
|
||||||
|
|
||||||
- name: Generate git-cliff config
|
- name: Generate git-cliff config
|
||||||
|
env:
|
||||||
|
ACTION_PATH: ${{ github.action_path }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
${{ github.action_path }}/scripts/generate-git-cliff-config.sh
|
${{ github.action_path }}/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
|
# Check if cliff.toml exists, if not, copy cliff.toml.template from the Action
|
||||||
if [ ! -f "$CLIFF_CONFIG" ]; then
|
if [ ! -f "$CLIFF_CONFIG" ]; then
|
||||||
echo "cliff.toml not found, using template from action."
|
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
|
# Replace placeholders in the copied config
|
||||||
OWNER="${GITHUB_REPOSITORY%/*}"
|
OWNER="${GITHUB_REPOSITORY%/*}"
|
||||||
REPO="${GITHUB_REPOSITORY#*/}"
|
REPO="${GITHUB_REPOSITORY#*/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user