From 56b0cd3ea02a5fd48c07dfbee8dd582bd2dfa5c9 Mon Sep 17 00:00:00 2001 From: Taras <9948629+taraspos@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:11:33 +0000 Subject: [PATCH 1/2] gha(update-docs-webhook): fix workflow syntax --- .github/workflows/update-docs-webhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-docs-webhook.yaml b/.github/workflows/update-docs-webhook.yaml index 4c59c66039cbd..20c42844ecff6 100644 --- a/.github/workflows/update-docs-webhook.yaml +++ b/.github/workflows/update-docs-webhook.yaml @@ -18,7 +18,7 @@ jobs: steps: - name: Call deployment webhook env: - WEBHOOK_URL: ${{ secrets[AMPLIFY_DOCS_DEPLOY_HOOK] }} + WEBHOOK_URL: ${{ secrets["AMPLIFY_DOCS_DEPLOY_HOOK"] }} run: | if curl -X POST --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then echo "Triggered successfully" From a9b77651fdcc3d46adb7de4943368b85c4ca08d9 Mon Sep 17 00:00:00 2001 From: Taras <9948629+taraspos@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:58:28 +0000 Subject: [PATCH 2/2] Use `secret.NAME` syntax --- .github/workflows/update-docs-webhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-docs-webhook.yaml b/.github/workflows/update-docs-webhook.yaml index 20c42844ecff6..f1ade331c4276 100644 --- a/.github/workflows/update-docs-webhook.yaml +++ b/.github/workflows/update-docs-webhook.yaml @@ -18,7 +18,7 @@ jobs: steps: - name: Call deployment webhook env: - WEBHOOK_URL: ${{ secrets["AMPLIFY_DOCS_DEPLOY_HOOK"] }} + WEBHOOK_URL: ${{ secrets.AMPLIFY_DOCS_DEPLOY_HOOK }} run: | if curl -X POST --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then echo "Triggered successfully"