Skip to content

Commit

Permalink
Fix webhook URL in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfloyd committed Apr 28, 2024
1 parent bd85308 commit 8be1caa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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"

0 comments on commit 8be1caa

Please sign in to comment.