This repository was archived by the owner on Jan 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,26 @@ jobs:
120120 id : changelog
121121 run : |
122122 PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
123-
123+ echo "::debug::Previous tag found: '$PREVIOUS_TAG'"
124+
124125 CHANGELOG_CONTENT=""
126+ GIT_LOG_COMMAND=""
127+
125128 if [ -z "$PREVIOUS_TAG" ]; then
129+ GIT_LOG_COMMAND='git log --pretty=format:"* %s (%h)"'
126130 CHANGELOG_CONTENT=$(git log --pretty=format:"* %s (%h)")
127131 else
132+ GIT_LOG_COMMAND="git log --pretty=format:\"* %s (%h)\" $PREVIOUS_TAG..HEAD"
128133 CHANGELOG_CONTENT=$(git log --pretty=format:"* %s (%h)" $PREVIOUS_TAG..HEAD)
129134 fi
130-
131- printf '%s<<EOF\n%s\nEOF\n' "CHANGELOG" "$CHANGELOG_CONTENT" >> "$GITHUB_ENV"
135+ echo "::debug::Executing command: $GIT_LOG_COMMAND"
136+ echo "::debug::Raw git log output:"
137+ echo "$CHANGELOG_CONTENT"
138+ echo "::debug::End of raw git log output."
139+ DELIMITER=$(openssl rand -hex 8)
140+ echo "::debug::Writing to GITHUB_OUTPUT with delimiter $DELIMITER"
141+ printf "%s<<%s\n%s\n%s\n" "CHANGELOG" "$DELIMITER" "$CHANGELOG_CONTENT" "$DELIMITER" >> "$GITHUB_OUTPUT"
142+ echo "::debug::Finished writing to GITHUB_OUTPUT."
132143 shell: bash
133144
134145 - name: Download Artifacts
You can’t perform that action at this time.
0 commit comments