Skip to content

Commit

Permalink
test curl response and token
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 10, 2024
1 parent 3cc3995 commit bd28164
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main


env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
GO_PID=$!
sleep 2s
echo "${GH_TOKEN}"
CURL_RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null --header "Authorization: Bearer ${GH_TOKEN}" http://localhost:8000/auth)
CURL_RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null --header "Authorization: Bearer $(echo GH_TOKEN | base64 -d)" http://localhost:8000/auth)
kill -9 $GO_PID
echo "Curl status code: ${CURL_RESPONSE}!"
:
Expand Down

0 comments on commit bd28164

Please sign in to comment.