[Tool] Fix inspection pipeline (#45257)

Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
This commit is contained in:
andyziye 2024-05-08 11:14:24 +08:00 committed by GitHub
parent 5b212bbba5
commit 5ee0d7219e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -107,8 +107,9 @@ jobs:
else
branch=main
fi
[[ $((`date +%d` % 2)) -eq 1 ]] && BE_UT_LINUX=ubuntu
[[ $((`date +%e` % 2)) -eq 1 ]] && BE_UT_LINUX=ubuntu
base_sha=$(gh api /repos/${REPO}/branches/${branch} | jq -r .commit.sha)
echo "::notice::${branch}(${BE_UT_LINUX} ${base_sha})"
[[ "${base_sha}" == "null" ]] && (echo "::error::Get HEAD SHA error, please check." && exit -1);
echo "BRANCH=${branch}" >> $GITHUB_OUTPUT
echo "PR_NUMBER=${base_sha}" >> $GITHUB_OUTPUT