File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 70
70
-t "$PR_TITLE" \
71
71
-o "${{ github.repository_owner }}" \
72
72
-r "${{ github.event.repository.name }}" \
73
- -p "$KUBERNETES_POD_NEW_IMAGE " \
73
+ -n "${{ github.event.pull_request.number }} " \
74
74
-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"
6
6
PR_TITLE=" ci: automated-release-dev"
7
7
REPOSITORY_OWNER=" code-kern-ai"
8
8
REPOSITORY_NAME=" "
9
- POD_IMAGE_NAME =" "
9
+ REPOSITORY_PR_NUMBER =" "
10
10
KUBERNETES_CLUSTER_REPO_NAME=" "
11
11
12
- while getopts b:h:t:o:r:p :k: flag
12
+ while getopts b:h:t:o:r:n :k: flag
13
13
do
14
14
case " ${flag} " in
15
15
b) BASE_REF=${OPTARG} ;;
16
16
h) HEAD_REF=${OPTARG} ;;
17
17
t) PR_TITLE=${OPTARG} ;;
18
18
o) REPOSITORY_OWNER=${OPTARG} ;;
19
19
r) REPOSITORY_NAME=${OPTARG} ;;
20
- p) POD_IMAGE_NAME =${OPTARG} ;;
20
+ n) REPOSITORY_PR_NUMBER =${OPTARG} ;;
21
21
k) KUBERNETES_CLUSTER_REPO_NAME=${OPTARG} ;;
22
22
esac
23
23
done
@@ -27,8 +27,8 @@ EXISTING_PR_BODY=$(gh pr list --base $BASE_REF --head $HEAD_REF --json body --jq
27
27
28
28
if [ -z " $EXISTING_PR_BODY " ]; then
29
29
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
32
32
EOF
33
33
)
34
34
gh pr create \
48
48
--json number --jq ' .[].number' )
49
49
PR_BODY=$( cat << EOF
50
50
$EXISTING_PR_BODY
51
- - $POD_IMAGE_NAME
51
+ - https://github.com/ $REPOSITORY_OWNER / $REPOSITORY_NAME /pull/ $REPOSITORY_PR_NUMBER
52
52
EOF
53
53
)
54
54
gh pr edit $EXISTING_PR_NUMBER \
You can’t perform that action at this time.
0 commit comments