File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 74
74
75
75
- name : Assert Deploy Success
76
76
shell : bash
77
- if : env.ENVIRONMENT_NAME == 'dev'
78
77
run : |
79
78
bash cicd-deployment-scripts/k8s/assert_deploy_success.sh \
80
79
-n ${{ env.KUBERNETES_NAMESPACE }} \
Original file line number Diff line number Diff line change @@ -26,11 +26,19 @@ EXISTING_PR_NUMBER=""
26
26
EXISTING_PR_BODY=$( gh pr list --base $BASE_REF --head $HEAD_REF --json body --jq ' .[].body' )
27
27
28
28
if [ -z " $EXISTING_PR_BODY " ]; then
29
- PR_BODY=$( cat << EOF
29
+ if [[ $REPOSITORY_PR_NUMBER =~ ^v(0| [1-9]* )\. (0| [1-9]* )\. (0| [1-9]* ) ]]; then
30
+ PR_BODY=$( cat << EOF
31
+ Automated $BASE_REF release for:
32
+ - https://github.com/$REPOSITORY_OWNER /$REPOSITORY_NAME /releases/tag/$REPOSITORY_PR_NUMBER
33
+ EOF
34
+ )
35
+ else
36
+ PR_BODY=$( cat << EOF
30
37
Automated $BASE_REF release for:
31
38
- https://github.com/$REPOSITORY_OWNER /$REPOSITORY_NAME /pull/$REPOSITORY_PR_NUMBER
32
39
EOF
33
40
)
41
+
34
42
gh pr create \
35
43
--base $BASE_REF \
36
44
--head $HEAD_REF \
Original file line number Diff line number Diff line change 16
16
kubectl config set-context --current --namespace=$KUBERNETES_NAMESPACE
17
17
echo " Context set to namespace: \" $KUBERNETES_NAMESPACE \" "
18
18
19
- UPDATED_FILES=$( gh pr diff $PR_NUMBER --name-only)
19
+ UPDATED_FILES=$( gh pr diff $PR_NUMBER --name-only || git diff $( git tag --sort version:refname | tail -n 2 | head -n 1 ) $( git tag --sort version:refname | tail -n 1 ) --name-only )
20
20
while IFS= read -r file; do
21
21
if [[ $file != apps/* ]]; then
22
22
continue
You can’t perform that action at this time.
0 commit comments