From c1511c1247a6f92b8b10d80eca1a7f12e63241e5 Mon Sep 17 00:00:00 2001 From: Cailyn Sinclair Date: Tue, 6 Oct 2026 20:42:35 -0700 Subject: [PATCH] Fix weekly Netlify deploy trigger Map the existing repository secret into the workflow step. Fail with a clear error when the secret is missing or Netlify rejects the hook request. --- .github/workflows/deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ff2477..8e45c2b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,5 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger Netlify deploy + env: + NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }} run: | - curl -X POST -d '{}' "$NETLIFY_BUILD_HOOK" + if [[ -z "${NETLIFY_BUILD_HOOK:-}" ]]; then + echo "::error::NETLIFY_BUILD_HOOK is not configured" + exit 1 + fi + + curl --fail-with-body --silent --show-error \ + --request POST \ + --data '{}' \ + "$NETLIFY_BUILD_HOOK"