Skip to content

Commit

Permalink
fix: checkout sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
GraceRuan committed Nov 13, 2024
1 parent 6d9286d commit 935d78e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
name: Check Token Expiration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Checkout token expiration
shell: bash
run: sh ./.github/workflows/check-token.sh
env:
broker_jwt: ${{ secrets.BROKER_JWT_0E727E83_F027_426A_A31C_D7C1CCEADDF6 }}
BROKER_JWT: ${{ secrets.BROKER_JWT_0E727E83_F027_426A_A31C_D7C1CCEADDF6 }}

build-release:
name: Build and release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RESPONSE_CODE=$(curl -o /dev/null -s -w "%{http_code}" -X 'GET' \
https://broker.io.nrs.gov.bc.ca/v1/health/token-check \
-H 'accept: */*' \
-H 'Authorization: Bearer '"$broker_jwt"'' \
-H 'Authorization: Bearer '"$BROKER_JWT"'' \
)

if [ "$RESPONSE_CODE" -eq 401 ]; then
Expand Down

0 comments on commit 935d78e

Please sign in to comment.