Skip to content

Commit ae101b1

Browse files
added placeholder files
1 parent 4fe1240 commit ae101b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/l10n.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
echo "Running tests for: $line";
110110
pipenv run python -m l10n_CM.run_l10n --fx-executable="$FX_EXECUTABLE" $line || SCRIPT_EXIT_CODE=$?;
111111
done < selected_l10n_mappings;
112+
ls artifacts-mac/* &>/dev/null || echo "No mappings to report" >> artifacts-mac/placeholder.txt
112113
mv -n artifacts/* artifacts-mac/ || true;
113114
EXIT_CODE=$(cat TEST_EXIT_CODE);
114115
if [ $EXIT_CODE != 0 ]; then
@@ -191,6 +192,7 @@ jobs:
191192
echo "Running tests for: $line";
192193
DISPLAY=:99 pipenv run python -m l10n_CM.run_l10n --fx-executable="$FX_EXECUTABLE" $line || SCRIPT_EXIT_CODE=$?;
193194
done < selected_l10n_mappings;
195+
ls artifacts-linux/* &>/dev/null || echo "No mappings to report" >> artifacts-linux/placeholder.txt
194196
mv -n artifacts/* artifacts-linux/ || true;
195197
EXIT_CODE=$(cat TEST_EXIT_CODE);
196198
if [ $EXIT_CODE != 0 ]; then
@@ -330,7 +332,7 @@ jobs:
330332
}
331333
mkdir artifacts-win -Force
332334
if (-not (Test-Path -Path "artifacts-win\*")) {
333-
New-Item -Path "artifacts-win\placeholder.txt" -ItemType File
335+
New-Item -Path "artifacts-win\placeholder.txt" -ItemType File -Value "no mappings to report."
334336
}
335337
$EXIT_CODE = Get-Content -Path "TEST_EXIT_CODE"
336338
if ($EXIT_CODE -ne 0) {

0 commit comments

Comments
 (0)