diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 7b4ef789..967d85cf 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -69,9 +69,7 @@ jobs: export GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} echo "GIT_BRANCH=$GIT_BRANCH" - export GIT_REF=refs/heads/$GIT_BRANCH - echo "GIT_REF=$GIT_REF" - export GIT_REV=$(git rev-parse --short $GIT_REF) + export GIT_REV=$(git rev-parse --short "$GITHUB_SHA") echo "GIT_REV=$GIT_REV" python rebuild_meta_yaml.py \