Refactor deploy step to use environment variable for webhook
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user