Skip to content

Commit

Permalink
Check webhook URL in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfloyd committed Apr 28, 2024
1 parent 4f72361 commit 9496b3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ jobs:
terraform apply -auto-approve -var aws_region=${{ vars.AWS_REGION }} -var lambda_bucket=${{ vars.S3_LAMBDA_BUCKET }} -var bot_token=${{ secrets.BOT_TOKEN }}
- name: Set webhook URL
shell: bash
run: |
cd infra
WEBHOOK_URL=$(terraform output -raw webhook_url | grep -o 'https://[^ ]*')
echo "Webhook URL: ${WEBHOOK_URL}"
# curl https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/setWebhook \
# -F "url=$WEBHOOK_URL"
shell: bash
curl https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/setWebhook -F "url=$WEBHOOK_URL"

0 comments on commit 9496b3d

Please sign in to comment.