Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5c5d340

Browse files
committedOct 14, 2024··
Removed whitespace for readability
1 parent c7baa2b commit 5c5d340

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
 

‎.github/workflows/sync-changes.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ jobs:
3737
3838
# Loop thru all lang dirs in firefox
3939
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
4343
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)
5547
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
5654
fi
55+
56+
fi
5757
done
5858
if [[ "$locales_updated" == true ]] ; then echo "locales_updated=true" >> $GITHUB_ENV ; fi
5959
@@ -77,7 +77,7 @@ jobs:
7777
git config --global commit.gpgsign true
7878
git config --global user.name "kudo-sync-bot"
7979
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 }}"
8181
8282
- name: Push changes to adamlui/phind-omnibox
8383
if: env.locales_updated == 'true'

0 commit comments

Comments
 (0)
Please sign in to comment.