Created
December 27, 2020 18:46
-
-
Save defly/8ca78cd1935d73a63b97629fb5b7bb86 to your computer and use it in GitHub Desktop.
Create lightest.app report for latest Vercel deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" https://api.vercel.com/v6/now/deployments?limit=5 | \ | |
jq '.deployments | map("https://\(.url)")' | \ | |
curl -H "Content-Type: application/json" -X POST --data-binary @- https://api.lightest.app/api/comparison | \ | |
jq -r '.id' | \ | |
awk '{print "\nhttps://lightest.app/c/"$1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment