Refactor deploy step to use environment variable for webhook

This commit is contained in:
Gregory Campbell
2026-06-05 15:48:20 -04:00
committed by GitHub
parent c9b217eb0c
commit 004211aed6
+5 -4
View File
@@ -34,9 +34,10 @@ jobs:
# Deployment (Only runs if 'test' passes)
deploy:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push'
steps:
- name: Trigger Amplify Webhook
run: curl -X POST -d {} "${{ secrets.AMPLIFY_WEBHOOK_URL }}"
- name: Trigger webhook using curl
env:
WEBHOOK_URL: ${{ secrets.AMPLIFY_WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" -d '{}' "$WEBHOOK_URL"