@@ -37,23 +37,23 @@ jobs:
37
37
38
38
# Loop thru all lang dirs in firefox
39
39
for locale in $(find "$ff_dir" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;) ; do
40
- ff_file="$ff_dir/$locale/messages.json"
41
- chromium_file="$chromium_dir/$locale/messages.json"
42
- if [[ -f "$ff_file" && -f "$chromium_file" ]] ; then
40
+ ff_file="$ff_dir/$locale/messages.json"
41
+ chromium_file="$chromium_dir/$locale/messages.json"
42
+ if [[ -f "$ff_file" && -f "$chromium_file" ]] ; then
43
43
44
- # Get the latest commit timestamps for both files
45
- ff_timestamp=$(git log -1 --format="%ct" -- "$ff_file" 2>/dev/null || echo 0)
46
- chromium_timestamp=$(git log -1 --format="%ct" -- "$chromium_file" 2>/dev/null || echo 0)
47
-
48
- # Sync the most recently updated messages.json to the other dir
49
- if [[ $ff_timestamp -ne $chromium_timestamp ]] ; then
50
- [[ "$locales_updated" != true ]] && locales_updated=true
51
- if [[ $ff_timestamp -gt $chromium_timestamp ]] ; then
52
- cp -f "$ff_file" "$chromium_file"
53
- else cp -f "$chromium_file" "$ff_file" ; fi
54
- fi
44
+ # Get the latest commit timestamps for both files
45
+ ff_timestamp=$(git log -1 --format="%ct" -- "$ff_file" 2>/dev/null || echo 0)
46
+ chromium_timestamp=$(git log -1 --format="%ct" -- "$chromium_file" 2>/dev/null || echo 0)
55
47
48
+ # Sync the most recently updated messages.json to the other dir
49
+ if [[ $ff_timestamp -ne $chromium_timestamp ]] ; then
50
+ [[ "$locales_updated" != true ]] && locales_updated=true
51
+ if [[ $ff_timestamp -gt $chromium_timestamp ]] ; then
52
+ cp -f "$ff_file" "$chromium_file"
53
+ else cp -f "$chromium_file" "$ff_file" ; fi
56
54
fi
55
+
56
+ fi
57
57
done
58
58
if [[ "$locales_updated" == true ]] ; then echo "locales_updated=true" >> $GITHUB_ENV ; fi
59
59
77
77
git config --global commit.gpgsign true
78
78
git config --global user.name "kudo-sync-bot"
79
79
git config --global user.email "auto-sync@kudoai.com"
80
- git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
80
+ git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
81
81
82
82
- name : Push changes to adamlui/phind-omnibox
83
83
if : env.locales_updated == 'true'
0 commit comments