Skip to content

Commit

Permalink
file expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Nov 2, 2022
1 parent f5bfad3 commit 089c571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: ./
with:
config: fixtures/cliff.toml
args: --verbose --strip 'footer'
args: --verbose --strip 'footer' --include-path './**'
env:
OUTPUT: fixtures/CHANGELOG.md
- name: Print the changelog
Expand Down
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash -l
set -uxo pipefail

# Avoid file expansion when passing parameters like with '*'
set -o noglob

OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"}

# Create the output directory
mkdir -p "$(dirname $OUTPUT)"

# Separate arguments before passing them to git-cliff command
args=$(echo $@ | xargs)
args=$(echo "$@" | xargs)

# Execute git-cliff
GIT_CLIFF_OUTPUT="$OUTPUT" git-cliff $args
Expand Down

0 comments on commit 089c571

Please sign in to comment.