Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ if [ -f "${FILE_1_PNG}" ]; then
exit 0; # compat w/ manually created file
else
echo ">> File '$FILE_1_PNG' already exist: overriding image... (MT_GENERATE_IMAGES=$MT_GENERATE_IMAGES)";
rm -f "${FILE_1_PNG}";
checkResult $?;
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ if [ -f "${FILE_1_PNG}" ]; then
exit 0; # compat w/ manually created file
else
echo ">> File '$FILE_1_PNG' already exist: overriding image... (MT_GENERATE_IMAGES=$MT_GENERATE_IMAGES)";
rm -f "${FILE_1_PNG}";
checkResult $?;
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ for DENSITY in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
exit 0; # compat w/ manually created file
else
echo ">> File '$FILE_PNG' already exist: overriding image... (MT_GENERATE_IMAGES=$MT_GENERATE_IMAGES)";
rm -f "${FILE_PNG}";
checkResult $?;
fi
fi
done
Expand Down
4 changes: 3 additions & 1 deletion shared-overwrite/.github/workflows/mt-sync-code-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,16 @@ jobs:
# ----------

- name: MT generate images if required
id: mt-image-gen
if: ${{ env.MT_IS_MAIN_REPO != 'true' && steps.mt-check-image-gen-required.outcome == 'success' }}
continue-on-error: true # nice to have
Comment thread
mmathieum marked this conversation as resolved.
Comment thread
mmathieum marked this conversation as resolved.
run: |
./commons/code_setup.sh;
env:
MT_GENERATE_IMAGES: true

- name: MT commit image change (if added/updated)
if: ${{ env.MT_IS_MAIN_REPO != 'true' }}
if: ${{ steps.mt-image-gen.outcome == 'success' && env.MT_IS_MAIN_REPO != 'true' }}
Comment thread
mmathieum marked this conversation as resolved.
run: |
git add -v -A -- ':(glob)**/*.png'
if git diff --staged --quiet; then
Expand Down