mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 22:15:39 +00:00
PRE-BUILD-AUTOMATIONS: fixing HEAD not being consistent during the PRs - Try #3
This commit is contained in:
parent
4c2a5b9336
commit
8f4dfb0a70
|
@ -18,7 +18,7 @@ automation_task_list=${GITHUB_WORKSPACE}/automation_tools/automation_task_list.c
|
||||||
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
# During the PR automated tests instead of the branch name is returned "HEAD", fixing it
|
# 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."
|
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/@@')
|
current_branch=$(echo $GITHUB_REF | sed 's@refs/heads/@@')
|
||||||
echo "The branch name from which the PR is raised is \"$current_branch\"."
|
echo "The branch name from which the PR is raised is \"$current_branch\"."
|
||||||
|
|
Loading…
Reference in a new issue