File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3232 if [[ "$COMMENT_BODY" =~ --project[[:space:]]+\"([^\"]+)\" ]]; then
3333 PROJECT="${BASH_REMATCH[1]}"
3434 echo "Project: $PROJECT"
35+ # TODO: else stopping the workflow if no env present
3536 fi
3637
3738 # Parse infra
4546 echo "project=$PROJECT" >> $GITHUB_OUTPUT
4647 echo "infra=$INFRA" >> $GITHUB_OUTPUT
4748
49+ # TODO: from here, isolate them in independent workflows
50+ # and just call them depending on the input by having just
51+ # a simple and unique trigger deployment
52+
4853 # Step 2: Validate and Trigger Deploy Workflow
4954 - name : Trigger Deployment Workflow
5055 if : steps.parse_command.outputs.environment != '' && steps.parse_command.outputs.project != ''
6772 # Step 3: Deploy Infra (if requested)
6873 - name : Deploy Infra
6974 if : steps.parse_command.outputs.infra != ''
70- uses : appleboy/ssh-action@v0.1.5
75+ uses : appleboy/ssh-action@v1.2.0
7176 with :
7277 host : ${{ secrets.SSH_HOST }}
7378 username : ${{ secrets.SSH_USERNAME }}
@@ -101,7 +106,7 @@ jobs:
101106 const project = `${{ steps.parse_command.outputs.project }}`;
102107 const infra = `${{ steps.parse_command.outputs.infra }}`;
103108 const prNumber = context.payload.issue.number;
104-
109+
105110 let message = "🚀 Deployment triggered:\n";
106111 if (project) {
107112 message += `- Project: \`${project}\`\n`;
You can’t perform that action at this time.
0 commit comments