diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 3638db8..bd846da 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -18,8 +18,8 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: \"17\" - distribution: \"temurin\" + java-version: '17' + distribution: 'temurin' cache: maven - name: Set environment variables @@ -60,14 +60,14 @@ jobs: - name: Download JAR from S3 to EC2 run: | - aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Download JAR from S3" --parameters \"commands=[ + aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Download JAR from S3" --parameters 'commands=[ "aws s3 cp s3://s3-bucket-safeqr/app-0.0.1-SNAPSHOT.jar /home/ssm-user/app-0.0.1-SNAPSHOT.jar", "ls -l /home/ssm-user/app-0.0.1-SNAPSHOT.jar" - ]\" + ]' - name: Create and Start Systemd Service run: | - aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Create and start service" --parameters \"commands=[ + aws ssm send-command --instance-ids ${{ env.INSTANCE_ID }} --document-name "AWS-RunShellScript" --comment "Create and start service" --parameters 'commands=[ "aws s3 cp s3://s3-bucket-safeqr/update_env_var.sh /home/ssm-user/update_env_var.sh", "sudo chmod +x /home/ssm-user/update_env_var.sh", "sudo source /home/ssm-user/.bashrc", @@ -76,4 +76,4 @@ jobs: "sudo systemctl enable springboot-app", "sudo systemctl start springboot-app", "sudo systemctl status springboot-app" - ]\" + ]'