Skip to content

Commit

Permalink
feat: add user-agent to http calls (#5)
Browse files Browse the repository at this point in the history
* feat: add user-agent to http calls

* fix typo
  • Loading branch information
jooola authored Jul 13, 2023
1 parent e8d1092 commit a677e02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion get-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ log() {

# do_request [<args>...]
do_request() {
curl --fail-with-body --retry 2 --silent "$@"
curl \
--fail-with-body \
--retry 2 \
--silent \
--user-agent "tps-action/unknown" \
"$@"
}

# get_ci_token
Expand Down

0 comments on commit a677e02

Please sign in to comment.