This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 95b3b83d6 fix(ci): setting git user
95b3b83d6 is described below
commit 95b3b83d6a2aa0184b8e6811cb47a1011e9c9a29
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Fri Jul 14 10:35:23 2023 +0200
fix(ci): setting git user
---
script/release-branch.sh | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/script/release-branch.sh b/script/release-branch.sh
index 510395bb3..a998de082 100755
--- a/script/release-branch.sh
+++ b/script/release-branch.sh
@@ -47,10 +47,13 @@ main() {
then
echo "❗ dry-run mode on, won't push any change!"
else
- git add --all
- git commit -m "chore: starting release branch for $new_release_branch" ||
true
- git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git"
HEAD:main
+ git config --local user.email "$CI_EMAIL"
+ git config --local user.name "$CI_USER"
+ git add -A && git commit -m "chore: starting release branch for
$new_release_branch" || true
+
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git"
HEAD:$new_release_branch
+ git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git"
HEAD:main
+
echo "🎉 Changes pushed correctly!"
fi
}