We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a738d commit 7b96497Copy full SHA for 7b96497
scripts/automerge.sh
@@ -6,6 +6,9 @@
6
: "${BRANCHES_TO_MERGE_REGEX?}" "${BRANCH_TO_MERGE_INTO?}"
7
: "${GITHUB_TOKEN?}" "${GITHUB_REPO?}"
8
9
+BRANCH_NAME=$(awk -F'/' '{print $3}' "${GITHUB_HEAD_REF}")
10
+export BRANCH_NAME
11
+
12
git config --global user.email "[email protected]"
13
git config --global user.name "CI bot"
14
@@ -47,4 +50,4 @@ push_uri="https://[email protected]/$GITHUB_REPO"
47
50
#git push "$push_uri" "$BRANCH_TO_MERGE_INTO" >/dev/null 2>&1
48
51
git push "$push_uri" "$BRANCH_TO_MERGE_INTO"
49
52
#git push "$push_uri" :"$GITHUB_HEAD_REF" >/dev/null 2>&1
-git push "$push_uri" :"$GITHUB_HEAD_REF"
53
+git push "$push_uri" :"$BRANCH_NAME"
0 commit comments