Skip to content

Commit fe4d1e0

Browse files
committed
fix(workflow-draft-release-hotfix-pr): fix PR is missing label pre-release
1 parent f36ddf1 commit fe4d1e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/draft_release_hotfix_pr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ jobs:
6969
Merging this PR will create the GitHub release ${{ env.TAG_PREFIX }}${{ env.RELEASE_VERSION }}.
7070
run: |
7171
PR_LABELS="automated-pr,${RELEASE_TYPE}-pr"
72+
73+
[[ ${PRE_RELEASE:false} == "true" ]] && ( gh label create 'pre-release' --force && PR_LABELS="$PR_LABELS,pre-release" )
74+
7275
for LABEL in $(echo $PR_LABELS | sed "s/,/ /g"); do gh label create $LABEL --force; done
73-
[[ ${PRE_RELEASE:false} == "true" ]] && gh label create 'pre-release' --force
7476
7577
PR_ID=$(gh pr list --state open --search "base:${{ env.BRANCH_MAIN }} head:${{ github.ref_name }}" | head -1 | cut -f1)
7678
[[ ! -z "$PR_ID" ]] && echo "PR was created with ID $PR_ID. Ignored!" || \

0 commit comments

Comments
 (0)