From e4af50e1dec63005142c7e325d7f7aa7d20ccc9c Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 23 Mar 2024 13:54:18 +0300 Subject: [PATCH] chore: change logic for branch name and add a comment Signed-off-by: mertmit --- .github/workflows/sync-to-develop.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-to-develop.yml b/.github/workflows/sync-to-develop.yml index 2b7c4b3707..2f95378921 100644 --- a/.github/workflows/sync-to-develop.yml +++ b/.github/workflows/sync-to-develop.yml @@ -33,7 +33,8 @@ jobs: cd nocodb git fetch --quiet --unshallow origin git checkout master - BRANCH_NAME=oss/$(git rev-list -n 3 HEAD | tail -1 | cut -c1-8) + : # Use the first 8 characters of the latest commit hash as the branch name + BRANCH_NAME=nc/$(git rev-list -n 1 HEAD | cut -c1-8) git checkout -b $BRANCH_NAME git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com'