fix(ci): Use pull request number for PR tag instead of event number

Unlike the pull_request trigger, pull_request_review doesn't have an event number. So instead, pull it from the pull request
This commit is contained in:
RJ Trujillo 2023-08-13 22:17:03 -06:00 committed by GitHub
parent 7985a30c77
commit 8cc182bf69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ jobs:
BUILD_TAGS=()
# Have tags for tracking builds during pull request
SHA_SHORT="${GITHUB_SHA::7}"
COMMIT_TAGS+=("pr-${{ github.event.number }}-${MAJOR_VERSION}")
COMMIT_TAGS+=("pr-${{ github.event.pull_request.number }}-${MAJOR_VERSION}")
COMMIT_TAGS+=("${SHA_SHORT}-${MAJOR_VERSION}")
if [[ "${{ matrix.is_latest_version }}" == "true" ]] && \
[[ "${{ matrix.is_stable_version }}" == "true" ]]; then