Skip to content

A self-hosted media server and file management system

fix(ci): changelog tries to run hash values

aminnausincbecece44ec2
diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml
index 9abf2d50..e94081f0 100644
--- a/.github/workflows/generate-changelog.yml
+++ b/.github/workflows/generate-changelog.yml
@@ -103,7 +103,7 @@ jobs:
clean_msg=$(echo "$msg" | sed -E 's/^[a-zA-Z_]+!?(\([^)]+\))?:[[:space:]]*//')
# - scope:msg (hash)
- printf -- "- %s%s (\`%s\`)\n" "$scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
+ printf '%s%s (`%s`)\n' "- $scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
done
echo "" >> $CHANGELOG_FILE
@@ -137,7 +137,7 @@ jobs:
clean_msg=$(echo "$msg" | sed -E 's/^[a-zA-Z_]+!?(\([^)]+\))?:[[:space:]]*//')
- printf -- "- %s%s (\`%s\`)\n" "$scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
+ printf '%s%s (`%s`)\n' "- $scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
done
echo "" >> $CHANGELOG_FILE
diff --git a/changelog.sh b/changelog.sh
index 88d069e8..284c5a75 100644
--- a/changelog.sh
+++ b/changelog.sh
@@ -64,7 +64,7 @@ write_section() {
clean_msg=$(echo "$msg" | sed -E 's/^[a-zA-Z_]+!?(\([^)]+\))?:[[:space:]]*//')
# - scope:msg (hash)
- printf -- "- %s%s (\`%s\`)\n" "$scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
+ printf '%s%s (`%s`)\n' "- $scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
done
echo "" >> $CHANGELOG_FILE
@@ -98,7 +98,7 @@ if [ -n "$BREAKING" ]; then
clean_msg=$(echo "$msg" | sed -E 's/^[a-zA-Z_]+!?(\([^)]+\))?:[[:space:]]*//')
- printf -- "- %s%s (\`%s\`)\n" "$scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
+ printf '%s%s (`%s`)\n' "- $scope" "$clean_msg" "$hash" >> "$CHANGELOG_FILE"
done
echo "" >> $CHANGELOG_FILE