mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
fix(action): fix quote/space handling in arguments
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -16,7 +16,12 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
config: fixtures/cliff.toml
|
config: fixtures/cliff.toml
|
||||||
args: --verbose --strip 'footer' --exclude-path '.github/**' --tag 0.0.0
|
args: >
|
||||||
|
--verbose
|
||||||
|
--strip 'footer'
|
||||||
|
--exclude-path '.github/**'
|
||||||
|
--tag 0.0.0
|
||||||
|
--with-commit "\'test(changelog): add a custom commit\'"
|
||||||
env:
|
env:
|
||||||
OUTPUT: fixtures/CHANGELOG.md
|
OUTPUT: fixtures/CHANGELOG.md
|
||||||
- name: Print the changelog
|
- name: Print the changelog
|
||||||
|
|||||||
4
run.sh
4
run.sh
@@ -23,12 +23,12 @@ mkdir -p "$(dirname $OUTPUT)"
|
|||||||
args=$(echo "$@" | xargs)
|
args=$(echo "$@" | xargs)
|
||||||
|
|
||||||
# Execute git-cliff
|
# Execute git-cliff
|
||||||
GIT_CLIFF_OUTPUT="$OUTPUT" ./bin/${GIT_CLIFF_BIN} $args
|
eval ./bin/${GIT_CLIFF_BIN} $args --output "$OUTPUT"
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
# Retrieve context
|
# Retrieve context
|
||||||
CONTEXT="$(mktemp)"
|
CONTEXT="$(mktemp)"
|
||||||
GIT_CLIFF_OUTPUT="$CONTEXT" ./bin/${GIT_CLIFF_BIN} $args --context
|
eval ./bin/${GIT_CLIFF_BIN} $args --context --output "$CONTEXT"
|
||||||
|
|
||||||
# Revert permissions
|
# Revert permissions
|
||||||
chown -R "$owner" .
|
chown -R "$owner" .
|
||||||
|
|||||||
Reference in New Issue
Block a user