Skip to content

Commit

Permalink
use real file
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySentry committed Jan 25, 2024
1 parent c376572 commit da0a8e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundle_uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ How to Test Local Things Bundle Analysis
#!/usr/bin/env bash

# staging
RES=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: token 81325051-5f42-4415-87e8-692a640de455" --data '{"commit": "0f4a922e6f434c1c172145bf75f491b6afffc344", "slug": "JerrySentry::::LocalDev"}' https://stage-api.codecov.dev/upload/bundle_analysis/v1)
# RES=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: token 81325051-5f42-4415-87e8-692a640de455" --data '{"commit": "c3765720cb5581f042721361a433aeaadf6a13fd", "slug": "JerrySentry::::LocalDev"}' https://stage-api.codecov.dev/upload/bundle_analysis/v1)

# local
# RES=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: token aad91b00-cfc5-4b4e-be59-af139ec92766" --data '{"commit": "50f88ea5b921082f28135a3ba44869341a9c4773", "slug": "JerrySentry::::LocalDev"}' http://localhost:8000/upload/bundle_analysis/v1)
RES=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: token aad91b00-cfc5-4b4e-be59-af139ec92766" --data '{"commit": "c3765720cb5581f042721361a433aeaadf6a13fd", "slug": "JerrySentry::::LocalDev"}' http://localhost:8000/upload/bundle_analysis/v1)
echo $RES

URL=$(echo $RES | jq -r '.url')
echo $URL

curl -v --upload-file b5.json $URL
curl -v --upload-file b_good.json $URL

0 comments on commit da0a8e9

Please sign in to comment.