Skip to content

Commit dd51b46

Browse files
committed
ci: updating the ssh-action version
1 parent f1408d1 commit dd51b46

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
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
@@ -45,6 +46,10 @@ jobs:
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 != ''
@@ -67,7 +72,7 @@ jobs:
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`;

0 commit comments

Comments
 (0)