mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +00:00
fix: use correct auth retrieval curl
This commit is contained in:
parent
d5c98e20c2
commit
aeb3240ac0
1 changed files with 3 additions and 8 deletions
11
.github/workflows/unlighthouse.yaml
vendored
11
.github/workflows/unlighthouse.yaml
vendored
|
@ -78,14 +78,9 @@ jobs:
|
|||
|
||||
- name: Run Unlighthouse
|
||||
run: |
|
||||
export SCAN_URL=${{ github.ref == 'refs/heads/main' && env.WEBSITE_URL || steps.vercel_preview_url.outputs.preview_url }}
|
||||
export AUTH_COOKIE=$(curl '$SCAN_URL/auth?/login' \
|
||||
-H 'Origin: $SCAN_URL' \
|
||||
-F "email=test_user" \
|
||||
-F "password=${{ secrets.TEST_USER_PASSWORD }}" \
|
||||
--verbose 2>&1 | awk -F'pb_auth=' '/pb_auth/{print $2;exit}' | awk -F';' '{print $1}')
|
||||
echo AUTH_COOKIE
|
||||
|
||||
export SCAN_URL="${{ github.ref == 'refs/heads/main' && env.WEBSITE_URL || steps.vercel_preview_url.outputs.preview_url }}"
|
||||
export AUTH_COOKIE="$(curl "https://$SCAN_URL/auth?/login" -H "Origin: https://$SCAN_URL" -F "email=test_user" -F "password=${{ secrets.TEST_USER_PASSWORD }}" --verbose 2>&1 | awk -F'pb_auth=' '/pb_auth/{print $2;exit}' | awk -F';' '{print $1}')"
|
||||
|
||||
pnpm run unlighthouse
|
||||
|
||||
- name: Upload report to Cloudflare pages
|
||||
|
|
Loading…
Reference in a new issue