[release] fix daily-snapshot logic (#18905)

When we manually run the daily-snapshot job to make a specific commit,
the resulting release should be named based on the release commit, not
the trigger commit.
This commit is contained in:
Gary Verhaegen 2024-03-28 11:22:50 +01:00 committed by GitHub
parent f18a374767
commit 929d187a28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,9 +34,9 @@ jobs:
eval "$(./dev-env/bin/dade-assist)"
source $(bash-lib)
prefix=$(cat NIGHTLY_PREFIX)
prefix=$(git show ${{ parameters.commit }}:sdk/NIGHTLY_PREFIX)
if [ "${{ parameters.version }}" = "snapshot" ]; then
release=$(./release.sh snapshot HEAD $prefix | awk '{print $2}')
release=$(./release.sh snapshot ${{ parameters.commit }} $prefix | awk '{print $2}')
else
release=${{ parameters.version }}
fi