Skip to content

Commit ab68896

Browse files
debug: Stripe not having SECRET KEY defined
1 parent 9b31532 commit ab68896

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/azure-static-web-apps-kind-plant-0e80e5803.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,20 @@ jobs:
5151
node-version: "20.x"
5252
env:
5353
NODE_VERSION: "20.x"
54+
- name: Verify Environment Variables
55+
run: |
56+
echo "Checking STRIPE_SECRET_KEY..."
57+
if [ -z "$STRIPE_SECRET_KEY" ]; then
58+
echo "ERROR: STRIPE_SECRET_KEY is not set!"
59+
exit 1
60+
else
61+
echo "STRIPE_SECRET_KEY is set (length: ${#STRIPE_SECRET_KEY})"
62+
fi
5463
- name: Build And Deploy
5564
id: builddeploy
5665
uses: Azure/static-web-apps-deploy@v1
66+
env:
67+
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
5768
with:
5869
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_PLANT_0E80E5803 }}
5970
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)

0 commit comments

Comments
 (0)