From 29f3f06e8f361e4f147bfd0690573dd21f12d213 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 10 Jan 2024 21:21:53 +0100 Subject: [PATCH] PRE-BUILD-AUTOMATIONS: fixing HEAD not being consistent during the PRs --- 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 f4d56c62..f4433808 100755 --- a/automation_tools/pre_build_automation.sh +++ b/automation_tools/pre_build_automation.sh @@ -15,7 +15,7 @@ rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml automation_task_list=${GITHUB_WORKSPACE}/automation_tools/automation_task_list.cfg -current_branch=$(git rev-parse --abbrev-ref HEAD) +current_branch=$(git branch --contains $(git rev-parse HEAD) | grep -E '^\*' | awk '{print $2}') echo "Manifest location: $rd_manifest" echo "Automation task list location: $automation_task_list"