-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.35 KB
/
cmp_commstrings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
name: Compare comm-strings
on:
push:
branches:
- main
#schedule:
# - cron: "0 11 * * 1"
workflow_dispatch:
jobs:
fetch:
name: L10n automation
runs-on: ubuntu-latest
steps:
- name: Install Linux packages
run: |
sudo apt update
sudo apt install rsync mercurial -y
- name: Clone l10n repository
uses: actions/checkout@v4
with:
path: l10n
- name: Clone comm-l10n repository
run: |
hg clone https://hg.mozilla.org/projects/comm-l10n
- name: Copy content from comm-l10n
run: |
rsync -av --exclude={".hg","_configs","suite"} comm-l10n/en-US/ l10n/
- name: Compare content
run: |
diff=$(git diff --ignore-blank-lines)
if [[ -n "$diff" ]]; then
echo "### There are differences between the two repositories" >> $GITHUB_STEP_SUMMARY
echo '```diff' >> $GITHUB_STEP_SUMMARY
echo "$diff" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
exit 1
else
echo "No differences found"
fi
working-directory: l10n