mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
don't force add
This commit is contained in:
@@ -93,12 +93,13 @@ while read -r PLUGIN_NAME; do
|
|||||||
echo "Failed to find a branch to branch from, just creating an empty one."
|
echo "Failed to find a branch to branch from, just creating an empty one."
|
||||||
FORCE_COMMIT=--allow-empty
|
FORCE_COMMIT=--allow-empty
|
||||||
fi
|
fi
|
||||||
git add -Af
|
git rm -r --cached .
|
||||||
|
git add -A
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
if [[ -n "$FORCE_COMMIT" || -n "$(git status --porcelain)" ]]; then
|
if [[ -n "$FORCE_COMMIT" || -n "$(git status --porcelain)" ]]; then
|
||||||
echo "Committing to $PLUGIN_NAME"
|
echo "Committing to $PLUGIN_NAME"
|
||||||
if git commit --quiet $FORCE_COMMIT --author="${COMMIT_ORIGINAL_AUTHOR}" -m "${COMMIT_MESSAGE}" &&
|
if git commit $FORCE_COMMIT --author="${COMMIT_ORIGINAL_AUTHOR}" -m "${COMMIT_MESSAGE}" &&
|
||||||
{ [[ -z "$CI" ]] || git push origin "$BRANCH"; } # Only do the actual push from the GitHub Action
|
{ [[ -z "$CI" ]] || git push origin "$BRANCH"; } # Only do the actual push from the GitHub Action
|
||||||
then
|
then
|
||||||
# echo "$BUILD_BASE/changes.diff"
|
# echo "$BUILD_BASE/changes.diff"
|
||||||
|
|||||||
Reference in New Issue
Block a user