Skip to content

Commit 004017f

Browse files
committed
fix: when sync-docs, use date over string for xx-updated-at meta
1 parent 2038321 commit 004017f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ jobs:
149149
150150
# Update source-updated-at and translation-updated-at in the file
151151
# Using portable sed syntax that works on both Linux and macOS
152-
perl -i -pe "s/source-updated-at: .*/source-updated-at: '$CURRENT_TIMESTAMP'/" "$DEST_LOCALE"
153-
perl -i -pe "s/translation-updated-at: .*/translation-updated-at: '$CURRENT_TIMESTAMP'/" "$DEST_LOCALE"
152+
perl -i -pe "s/source-updated-at: .*/source-updated-at: $CURRENT_TIMESTAMP/" "$DEST_LOCALE"
153+
perl -i -pe "s/translation-updated-at: .*/translation-updated-at: $CURRENT_TIMESTAMP/" "$DEST_LOCALE"
154154
else
155155
echo "Content changed, keeping original timestamps for translation to detect changes"
156156
fi

0 commit comments

Comments
 (0)