File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 2525 run : |
2626 python -m pip install --upgrade pip setuptools
2727 pip install bugout-locust
28- - name : Generate Locust summary
29- run : |
30- COMMENTS_URL=$(python -c 'import json; import os; event = os.environ.get("GITHUB_EVENT_PATH"); raw = open(event); inp_json = json.load(raw); print(inp_json.get("pull_request").get("_links").get("comments").get("href")); raw.close();')
31- INITIAL_REF=$(locust.github initial)
32- TERMINAL_REF=$(locust.github terminal)
33- REPO_URL=$(locust.github repo)
34- locust --format json $INITIAL_REF $TERMINAL_REF --github $REPO_URL --metadata "{\"comments_url\": \"${COMMENTS_URL}\", \"terminal_hash\": \"$TERMINAL_REF\"}" | tee summary
35- - name : Cleaning summary
36- id : clean_summary
37- run : |
38- summary=$(cat summary)
39- summary="${summary//'%'/'%25'}"
40- summary="${summary//$'\n'/'%0A'}"
41- summary="${summary//$'\r'/'%0D'}"
42- echo "::set-output name=summary::$summary"
43- - name : Upload locust results to Bugout
28+ - name : Generate and send Locust summary
4429 env :
4530 BUGOUT_SECRET : ${{ secrets.BUGOUT_SECRET }}
4631 run : |
47- curl -k -X POST "https://spire.bugout.dev/github/summary" \
48- -H "Content-Type: application/json" \
49- -H "Authorization: Bearer $BUGOUT_SECRET" \
50- --data '${{ steps.clean_summary.outputs.summary }}'
32+ locust.github publish
You can’t perform that action at this time.
0 commit comments