Debug step

This commit is contained in:
2024-02-05 01:05:16 +01:00
parent 6104abde97
commit f423f78530

View File

@@ -17,22 +17,17 @@ generate_supporting_files:
- | - |
for icon in icons/*.png; do for icon in icons/*.png; do
small_icon="icons-small/$(basename "$icon")" small_icon="icons-small/$(basename "$icon")"
if [ ! -f "$small_icon" ]; then echo "Resizing $icon..."
convert "$icon" -resize 16x16 "$small_icon" convert "$icon" -resize 16x16 "$small_icon"
fi
done done
ls icons-small
- python scripts/generate_readme.py - python scripts/generate_readme.py
- export NEEDS_UPDATE="false"
- git diff --exit-code || export NEEDS_UPDATE="true"
- echo $NEEDS_UPDATE
- | - |
if [ $NEEDS_UPDATE = "true" ]; then git remote set-url origin https://$CI_USER:$CI_TOKEN@gitlab.ms-ds.org/msds/icons.git
git remote set-url origin https://$CI_USER:$CI_TOKEN@gitlab.ms-ds.org/msds/icons.git git add *
git add * git config --global user.email "ci@gitlab.ms-ds.org"
git config --global user.email "ci@gitlab.ms-ds.org" git config --global user.name "GitLab CI"
git config --global user.name "GitLab CI" git commit -m "Auto-updated small icons + README"
git commit -m "Auto-updated small icons + README" git push -o ci.skip origin HEAD:main
git push -o ci.skip origin HEAD:main
fi
only: only:
- main - main