mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-06 08:07:08 +00:00
more towards update version/docs after release by creating a PR
This commit is contained in:
@@ -47,6 +47,13 @@ git add "$configdoc"
|
||||
# Print the current status to the log.
|
||||
git status
|
||||
|
||||
# Restore the unstaged changes, if any.
|
||||
echo "Restoring any unstaged changes."
|
||||
git restore .
|
||||
|
||||
# Print the current status to the log.
|
||||
git status
|
||||
|
||||
# Did we just stage any changes?
|
||||
staged=$(git --no-pager diff --staged)
|
||||
if [[ "$staged" == "" ]]; then
|
||||
@@ -57,8 +64,4 @@ else
|
||||
echo "Found changes for $clidoc or $configdoc:"
|
||||
echo
|
||||
echo "$staged"
|
||||
echo
|
||||
# Commit.
|
||||
echo "Committing changes."
|
||||
git commit -m "Updated versions in docs for $pinniped_tag release"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user