From caab55f4651277536b210af75d66deb9c2a079c9 Mon Sep 17 00:00:00 2001 From: Sirajvind <99573323+sirajvind@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:51:15 +0800 Subject: [PATCH] fix: add validation step for environment variables in Playwright workflow --- .github/workflows/playwright.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index e706c7e..3ac9789 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -20,6 +20,7 @@ jobs: - name: Set environment variables from JSON run: | echo "${{ secrets.SECRETS_JSON }}" > secrets.json + cat secrets.json | jq empty cat secrets.json | jq -r 'to_entries | .[] | "echo \(.key)=\(.value) >> $GITHUB_ENV"' | sh - name: Run Playwright tests run: npx playwright test