Skip to content

Commit

Permalink
fix: simplify environment variable handling in Playwright workflow by…
Browse files Browse the repository at this point in the history
… removing toJson function
  • Loading branch information
sirajvind committed Dec 2, 2024
1 parent 5f19d6f commit 9de920d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
run: npx playwright install --with-deps
- name: Set environment variables from JSON
run: |
echo "${{ toJson(secrets.SECRETS_JSON) }}" > secrets.json
cat secrets.json | jq empty
echo "${{ secrets.SECRETS_JSON }}" > secrets.json
cat secrets.json | jq -r 'to_entries | .[] | "echo \(.key)=\(.value) >> $GITHUB_ENV"' | sh
- name: Run Playwright tests
run: npx playwright test
Expand Down

0 comments on commit 9de920d

Please sign in to comment.