File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,19 @@ main() {
7676 git config user.name " github-actions"
7777 git config user.email
" [email protected] " 7878 git checkout -b " $BRANCH_NAME "
79- git add " ${PLUGIN_PATH} /readme.txt " " ${PLUGIN_PATH} / README.md " || true
79+ git add " ${PLUGIN_PATH} /" {readme, README}. * || true
8080
8181 # Bail before committing anything if we're dry-running.
8282 if [[ " ${DRY_RUN} " == " true" ]]; then
8383 echo " Dry run enabled. Happy testing."
8484 exit 0
8585 fi
8686
87+ if [[ -z $( git status --porcelain) ]]; then
88+ echo " No changes to commit. Exiting."
89+ exit 1
90+ fi
91+
8792 echo " Committing changes and pushing to the repository."
8893 git commit -m " Update Tested Up To version to $CURRENT_WP_VERSION "
8994 git push origin " $BRANCH_NAME "
You can’t perform that action at this time.
0 commit comments