Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/get-changelogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ mkdir -p "$PROCESSING_DIR"
# Download only .md files from S3
aws s3 sync "s3://$S3_BUCKET/$S3_PREFIX" "$LOCAL_DIR" --exclude "*" --include "*.md"

cp "$LOCAL_DIR"/*.md "$PROCESSING_DIR"
# Only copy if there are .md files
if ls "$LOCAL_DIR"/*.md 1> /dev/null 2>&1; then
cp "$LOCAL_DIR"/*.md "$PROCESSING_DIR"
fi

# Process downloaded files: update H1 header to only the last semantic version after "vs. "
for file in "$PROCESSING_DIR"/*.md; do
Expand Down
Loading