File tree Expand file tree Collapse file tree
actions/delete-control-plane-app Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88set -e
99
10+ printenv
11+
1012# 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} "
1315
1416# Safety check: prevent deletion of production or staging apps
1517if echo " $APP_NAME " | grep -iqE ' (production|staging)' ; then
Original file line number Diff line number Diff line change @@ -131,13 +131,6 @@ jobs:
131131 owner: context.repo.owner,
132132 repo: context.repo.repo,
133133 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')
141134 });
142135 return { commentId: comment.data.id };
143136
@@ -148,7 +141,6 @@ jobs:
148141 cpln_org : ${{ vars.CPLN_ORG_STAGING }}
149142
150143 - name : Update Delete Status
151- if : always()
152144 uses : actions/github-script@v7
153145 with :
154146 script : |
You can’t perform that action at this time.
0 commit comments