mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
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:
parent
7985a30c77
commit
8cc182bf69
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -85,7 +85,7 @@ jobs:
|
|||||||
BUILD_TAGS=()
|
BUILD_TAGS=()
|
||||||
# Have tags for tracking builds during pull request
|
# Have tags for tracking builds during pull request
|
||||||
SHA_SHORT="${GITHUB_SHA::7}"
|
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}")
|
COMMIT_TAGS+=("${SHA_SHORT}-${MAJOR_VERSION}")
|
||||||
if [[ "${{ matrix.is_latest_version }}" == "true" ]] && \
|
if [[ "${{ matrix.is_latest_version }}" == "true" ]] && \
|
||||||
[[ "${{ matrix.is_stable_version }}" == "true" ]]; then
|
[[ "${{ matrix.is_stable_version }}" == "true" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user