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)
|
# 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user