From 8f4dfb0a70869214835897badb7f0bbb0df38371 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 10 Jan 2024 21:35:13 +0100 Subject: [PATCH] PRE-BUILD-AUTOMATIONS: fixing HEAD not being consistent during the PRs - Try #3 --- automation_tools/pre_build_automation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh index b2b7ed31..0c47f854 100755 --- a/automation_tools/pre_build_automation.sh +++ b/automation_tools/pre_build_automation.sh @@ -18,7 +18,7 @@ automation_task_list=${GITHUB_WORKSPACE}/automation_tools/automation_task_list.c current_branch=$(git rev-parse --abbrev-ref HEAD) # During the PR automated tests instead of the branch name is returned "HEAD", fixing it -if [ $current_branch == "HEAD" ]: then +if [ $current_branch == "HEAD" ]; then echo "Looks like we are on a PR environment, retrieving the branch name from which the PR is raised." current_branch=$(echo $GITHUB_REF | sed 's@refs/heads/@@') echo "The branch name from which the PR is raised is \"$current_branch\"."