Skip to content

Commit

Permalink
More tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar committed Oct 24, 2024
1 parent 7d4cd03 commit 7ed7cd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-cliff-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ runs:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ inputs.token }}
run: |
set -x
if [[ '${{ inputs.release_type }}' = custom ]]; then
version_number=$(echo ${{ inputs.custom_version }} | sed s/^v//)
elif [[ '${{ inputs.release_type }}' = auto || '${{ inputs.release_type }}' = prerelease ]]; then
Expand All @@ -98,6 +99,7 @@ runs:
GITHUB_TOKEN: ${{ inputs.token }}
working-directory: ${{ github.action_path }}
run: |
set -x
echo 'release_notes<<EOF' >> $GITHUB_OUTPUT
git-cliff --tag "${{ steps.version_number.outputs.tag_name }}" --unreleased --context |
python enhance_context.py --repo $GITHUB_REPO --release-notes |
Expand All @@ -115,9 +117,11 @@ runs:
GITHUB_TOKEN: ${{ inputs.token }}
working-directory: ${{ github.action_path }}
run: |
set -x
dump_context_args=()
enhance_context_args=()
print_changelog_args=()
out_file=$GIT_CLIFF_WORKDIR/new_changelog.md
if [[ -n "${{ inputs.existing_changelog_path }}" ]]; then
Expand All @@ -137,11 +141,9 @@ runs:
dump_context_args+=(--tag "${{ steps.version_number.outputs.tag_name }}")
fi
set -x
git-cliff --context "${dump_context_args[@]}" |
python enhance_context.py --repo $GITHUB_REPO "${enhance_context_args[@]}" |
git-cliff --from-context - "${print_changelog_args[@]}"
set +x
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
cat $out_file >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7ed7cd3

Please sign in to comment.