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"