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.
1 parent 29f3c6d commit fed8a4fCopy full SHA for fed8a4f
.github/workflows/i18n-consistency-checker.yaml
@@ -50,8 +50,7 @@ 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_header=$(grep -E '^title+' "$file" | sort -r | head -n1)
54
- content_title=$(echo "$content_header" | sed 's/title: //g')
+ content_title= $(awk '/## Title/{flag=1; next} /##/{flag=0; exit} flag{printf "%s", $0}' "$file")
55
days_since_overdue_updates=$(( ($(date +%s) - original_updated_at) / 60 / 60 / 24 ))
56
original_last_update_hash=$(git log -1 --format=%H $file)
57
parent_hash=$(git log -1 --format=%P $original_last_update_hash)
0 commit comments