File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
actions/delete-control-plane-app Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 7
7
8
8
set -e
9
9
10
+ printenv
11
+
10
12
# Validate required environment variables
11
- : " ${APP_NAME:? APP_NAME environment variable is required} "
12
- : " ${CPLN_ORG:? CPLN_ORG environment variable is required} "
13
+ : " ${$ APP_NAME:? APP_NAME environment variable is required} "
14
+ : " ${$ CPLN_ORG:? CPLN_ORG environment variable is required} "
13
15
14
16
# Safety check: prevent deletion of production or staging apps
15
17
if echo " $APP_NAME " | grep -iqE ' (production|staging)' ; then
Original file line number Diff line number Diff line change @@ -131,13 +131,6 @@ jobs:
131
131
owner: context.repo.owner,
132
132
repo: context.repo.repo,
133
133
body: '🗑️ Starting app deletion...'
134
- body: [
135
- message,
136
- '',
137
- ' 🗑️ [View Delete Logs](' + process.env.WORKFLOW_URL + ')',
138
- '',
139
- getConsoleLink(process.env.PR_NUMBER)
140
- ].join('\n')
141
134
});
142
135
return { commentId: comment.data.id };
143
136
@@ -148,7 +141,6 @@ jobs:
148
141
cpln_org : ${{ vars.CPLN_ORG_STAGING }}
149
142
150
143
- name : Update Delete Status
151
- if : always()
152
144
uses : actions/github-script@v7
153
145
with :
154
146
script : |
You can’t perform that action at this time.
0 commit comments