From 8be1caa8781f71e9f313b8d5005223e12e4ef8f0 Mon Sep 17 00:00:00 2001 From: Yashar Hosseinpour Date: Sun, 28 Apr 2024 19:40:39 +0200 Subject: [PATCH] Fix webhook URL in GitHub actions --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93ecbda..1ffdb56 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,9 @@ jobs: run: aws s3 cp bot/lambda_function.zip s3://${{ vars.S3_LAMBDA_BUCKET }}/lambda_function.zip - name: Set up Terraform - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v3 + with: + terraform_wrapper: false - name: Terraform init run: | @@ -63,6 +65,6 @@ jobs: shell: bash run: | cd infra - WEBHOOK_URL=$(terraform output webhook_url | sed 's/"//g') # Remove double quotes + WEBHOOK_URL=$(terraform output -raw webhook_url) echo "Webhook URL: $WEBHOOK_URL" curl https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/setWebhook -F "url=$WEBHOOK_URL"