From 4d871090afa6c756a96bb1d8cf7e195058366b5b Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 10 Jan 2024 21:26:45 +0100 Subject: [PATCH] PRE-BUILD-AUTOMATIONS: fixing HEAD not being consistent during the PRs - Try #2 --- 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 f4433808..cb8c8917 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 branch --contains $(git rev-parse HEAD) | grep -E '^\*' | awk '{print $2}') +current_branch=$(git symbolic-ref --short HEAD) echo "Manifest location: $rd_manifest" echo "Automation task list location: $automation_task_list"