From 004211aed67a6abcb24a18490529f7b96d73241f Mon Sep 17 00:00:00 2001 From: Gregory Campbell <15807475+gjcampbell777@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:48:20 -0400 Subject: [PATCH] Refactor deploy step to use environment variable for webhook --- .github/workflows/amplify-deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/amplify-deploy.yml b/.github/workflows/amplify-deploy.yml index fa2042c32..d52a3a9f0 100644 --- a/.github/workflows/amplify-deploy.yml +++ b/.github/workflows/amplify-deploy.yml @@ -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"