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) # Deployment (Only runs if 'test' passes)
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push'
steps: steps:
- name: Trigger Amplify Webhook - name: Trigger webhook using curl
run: curl -X POST -d {} "${{ secrets.AMPLIFY_WEBHOOK_URL }}" env:
WEBHOOK_URL: ${{ secrets.AMPLIFY_WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" -d '{}' "$WEBHOOK_URL"