Skip to content

Commit 5074c52

Browse files
committed
perf(k8s_edit): PR title
1 parent de768ad commit 5074c52

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/k8s_edit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,16 @@ jobs:
8484
git add ${{ env.KUBERNETES_MANIFEST_FILE_PATH }}
8585
git commit -m "ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE" || true
8686
git push origin $AUTOMATED_RELEASE_BRANCH
87+
88+
PR_TITLE="ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE"
89+
if [ ${{ github.event_name }} == 'release' ]; then
90+
PR_TITLE="ci(${{ github.ref_name }}): $KUBERNETES_POD_NEW_IMAGE"
91+
fi
8792
8893
gh pr create \
8994
--base dev \
9095
--head $AUTOMATED_RELEASE_BRANCH \
91-
--title "ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE" \
96+
--title "$PR_TITLE" \
9297
--body "Automated release for ${{ github.event.repository.name }}: $KUBERNETES_POD_NEW_IMAGE:${{ env.IMAGE_TAG }}" \
9398
--draft \
9499
--repo ${{ github.repository_owner }}/${{ env.KUBERNETES_CLUSTER_REPO_NAME }} || true

0 commit comments

Comments
 (0)