Making WordPress.org

Changeset 5498


Ignore:
Timestamp:
05/18/2017 01:26:48 AM (6 years ago)
Author:
dd32
Message:

Feature Plugins Github Sync: Don't performa a commit/version bump if nothing has changed.
Sometimes push events are recieved which doesn't actually change the code we're building from.

Props kasparsd.
See https://github.com/georgestephanis/two-factor/issues/176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/github-sync/feature-plugins.sh

    r3983 r5498  
    101101rm -rf $WORKING_DIR/_temp-github
    102102
     103# Commit only if any changes found
     104SVN_CHANGES_FOUND=$(svn status -q $WORKING_DIR)
     105if [ -z "$SVN_CHANGES_FOUND" ]; then
     106    echo "No changes found in the SVN repository."
     107    exit 1
     108fi
     109
    103110# Do the version number bump with $date (0.1-20150125)
    104111# Will error if no .php files exist
Note: See TracChangeset for help on using the changeset viewer.