Reason was simple: “wp-plugin-in-github” tool has not any delete assets functions. So in git repo there were no screenshot-1.png, but in svn repo — it was.
Workaround to work:
find $SVNPATH_ASSETS -type f -not -path '*.svn*' -delete
cp $GITPATH/$ASSETS_DIR/* $SVNPATH_ASSETS # copy assets */
cd $SVNPATH_ASSETS # Switch to assets directory
svn status | grep "^!" > /dev/null 2>&1 # Check if deleted assests exists
if [ $? -eq 0 ]; then
svn status | grep "^!" | awk '{print $2}' | xargs svn delete # Remove new assets
fi
svn status | grep "^?\|^M" > /dev/null 2>&1 # Check if new or updated assets exists
if [ $? -eq 0 ]; then
svn status | grep "^?" | awk '{print $2}' | xargs svn add # Add new assets
fi
svn propset svn:mime-type image/jpeg *.jpg
svn propset svn:mime-type image/png *.png
svn status | egrep "^ ?(A|M|D)" > /dev/null 2>&1 # Check if we have somethign staged
if [ $? -eq 0 ]; then
svn commit --username=$SVNUSER -m "Updated assets"
echo "[Info] Assets committed to SVN."
else
echo "[Info] Contents of Assets directory unchanged. Ignoring it."
fi
# Let's remove the assets directory in /tmp which is not needed any more
rm -rf $SVNPATH_ASSETS