Skip to content

Commit 00aa308

Browse files
committed
perf: add PR creation to k8s_edit
1 parent a7d6ed9 commit 00aa308

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/k8s_edit.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
-r ${{ env.AZURE_CONTAINER_REGISTRY }} \
7171
-t ${{ env.IMAGE_TAG }}
7272
73-
- name: Commit changes
73+
- name: Perform Git Operations
7474
shell: bash
7575
run: |
7676
AUTOMATED_RELEASE_BRANCH="automated-release-${{ github.event_name == 'release' && 'prod' || 'dev' }}"
@@ -81,4 +81,13 @@ jobs:
8181
8282
git add ${{ env.KUBERNETES_MANIFEST_FILE_PATH }}
8383
git commit -m "ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE"
84-
git push origin $AUTOMATED_RELEASE_BRANCH
84+
git push origin $AUTOMATED_RELEASE_BRANCH
85+
86+
gh pr create \
87+
--base dev \
88+
--head $AUTOMATED_RELEASE_BRANCH \
89+
--title "ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE" \
90+
--body "Automated release for ${{ github.event.repository.name }}: $KUBERNETES_POD_NEW_IMAGE" \
91+
--assignee ${{ github.repository_owner }}/devops-admin \
92+
--draft \
93+
--repo ${{ github.repository_owner }}/${{ env.KUBERNETES_CLUSTER_REPO_NAME }} || true

0 commit comments

Comments
 (0)