We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fed8a4f commit 9f24d5fCopy full SHA for 9f24d5f
1 file changed
.github/workflows/i18n-consistency-checker.yaml
@@ -50,7 +50,10 @@ jobs:
50
i18n_content_updated_at=$(date -d "$(git log -1 --format=%cd --date=iso $i18n_filename)" +%s)
51
52
if [[ $((original_updated_at - i18n_content_updated_at)) -ge 1 ]]; then
53
- content_title= $(awk '/## Title/{flag=1; next} /##/{flag=0; exit} flag{printf "%s", $0}' "$file")
+ content_header=$(grep -E '^title+' "$file" | sort -r | head -n1)
54
+ content_title=$(echo "$content_header" | sed 's/title: //g')
55
+
56
+ content_title=$(awk '/## Title/{flag=1; next} /##/{flag=0; exit} flag{printf "%s", $0}' "$file")
57
days_since_overdue_updates=$(( ($(date +%s) - original_updated_at) / 60 / 60 / 24 ))
58
original_last_update_hash=$(git log -1 --format=%H $file)
59
parent_hash=$(git log -1 --format=%P $original_last_update_hash)
0 commit comments