File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 7070 -t "$PR_TITLE" \
7171 -o "${{ github.repository_owner }}" \
7272 -r "${{ github.event.repository.name }}" \
73- -p "$KUBERNETES_POD_NEW_IMAGE " \
73+ -n "${{ github.event.pull_request.number }} " \
7474 -k "${{ env.KUBERNETES_CLUSTER_REPO_NAME }}" \
Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ HEAD_REF="automated-release-dev"
66PR_TITLE=" ci: automated-release-dev"
77REPOSITORY_OWNER=" code-kern-ai"
88REPOSITORY_NAME=" "
9- POD_IMAGE_NAME =" "
9+ REPOSITORY_PR_NUMBER =" "
1010KUBERNETES_CLUSTER_REPO_NAME=" "
1111
12- while getopts b:h:t:o:r:p :k: flag
12+ while getopts b:h:t:o:r:n :k: flag
1313do
1414 case " ${flag} " in
1515 b) BASE_REF=${OPTARG} ;;
1616 h) HEAD_REF=${OPTARG} ;;
1717 t) PR_TITLE=${OPTARG} ;;
1818 o) REPOSITORY_OWNER=${OPTARG} ;;
1919 r) REPOSITORY_NAME=${OPTARG} ;;
20- p) POD_IMAGE_NAME =${OPTARG} ;;
20+ n) REPOSITORY_PR_NUMBER =${OPTARG} ;;
2121 k) KUBERNETES_CLUSTER_REPO_NAME=${OPTARG} ;;
2222 esac
2323done
@@ -27,8 +27,8 @@ EXISTING_PR_BODY=$(gh pr list --base $BASE_REF --head $HEAD_REF --json body --jq
2727
2828if [ -z " $EXISTING_PR_BODY " ]; then
2929 PR_BODY=$( cat << EOF
30- Automated $BASE_REF release:
31- - $POD_IMAGE_NAME
30+ Automated $BASE_REF release for :
31+ - https://github.com/ $REPOSITORY_OWNER / $REPOSITORY_NAME /pull/ $REPOSITORY_PR_NUMBER
3232EOF
3333)
3434 gh pr create \
4848 --json number --jq ' .[].number' )
4949 PR_BODY=$( cat << EOF
5050$EXISTING_PR_BODY
51- - $POD_IMAGE_NAME
51+ - https://github.com/ $REPOSITORY_OWNER / $REPOSITORY_NAME /pull/ $REPOSITORY_PR_NUMBER
5252EOF
5353)
5454 gh pr edit $EXISTING_PR_NUMBER \
You can’t perform that action at this time.
0 commit comments