You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trimmed_filename=$(echo "$filename"| xargs)# Trim whitespace
89
+
full_path="${PLUGIN_PATH}/${trimmed_filename}"
90
+
if [[ -f"$full_path" ]];then
91
+
git add "$full_path"
92
+
fi
93
+
done
80
94
81
95
# Bail before committing anything if we're dry-running.
82
96
if [[ "${DRY_RUN}"=="true" ]];then
83
97
echo"Dry run enabled. Happy testing."
84
98
exit 0
85
99
fi
86
100
101
+
# Check if there are any staged changes
87
102
if [[ -z$(git status --porcelain) ]];then
88
103
echo"No changes to commit. Exiting."
89
104
exit 1
@@ -93,7 +108,7 @@ main() {
93
108
git commit -m "Update Tested Up To version to $CURRENT_WP_VERSION"
94
109
git push origin "$BRANCH_NAME"
95
110
96
-
gh pr create --title "Update Tested Up To version to $CURRENT_WP_VERSION" --body "This pull request updates the \"Tested up to\" version in readme.txt (and README.md if applicable) to match the current WordPress version $CURRENT_WP_VERSION."
111
+
gh pr create --title "Update Tested Up To version to $CURRENT_WP_VERSION" --body "This pull request updates the \"Tested up to\" version in specified files (${FILENAMES}) to match the current WordPress version $CURRENT_WP_VERSION."
0 commit comments