diff --git a/.automation/build-srpm.sh b/.automation/build-srpm.sh index df2b4475f72..e3adadb84ba 100755 --- a/.automation/build-srpm.sh +++ b/.automation/build-srpm.sh @@ -17,10 +17,10 @@ done make validations # git hash of current commit from GH action or from the HEAD commit -if [[ "${GITHUB_SHA}" == "" ]]; then +if [[ "${GITHUB_REF}" == "" ]]; then GIT_HASH=$(git rev-parse --short HEAD) else - GIT_HASH=$(git rev-parse --short $GITHUB_SHA) + GIT_HASH=$(git rev-parse --short $GITHUB_REF) fi # Prepare the SNAPSHOT release suffix if a MILESTONE is available