We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3d218d + cd5975c commit ac661b7Copy full SHA for ac661b7
scripts/get-changelogs.sh
@@ -19,7 +19,10 @@ mkdir -p "$PROCESSING_DIR"
19
# Download only .md files from S3
20
aws s3 sync "s3://$S3_BUCKET/$S3_PREFIX" "$LOCAL_DIR" --exclude "*" --include "*.md"
21
22
-cp "$LOCAL_DIR"/*.md "$PROCESSING_DIR"
+# Only copy if there are .md files
23
+if ls "$LOCAL_DIR"/*.md 1> /dev/null 2>&1; then
24
+ cp "$LOCAL_DIR"/*.md "$PROCESSING_DIR"
25
+fi
26
27
# Process downloaded files: update H1 header to only the last semantic version after "vs. "
28
for file in "$PROCESSING_DIR"/*.md; do
0 commit comments