Skip to content

Commit

Permalink
fix: use inputs and secrets directly in workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
GraceRuan committed Nov 14, 2024
1 parent d9bac86 commit 3bf4ec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/check-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ jobs:
steps:
- name: Check token expiration
shell: bash
env:
BROKER_URL: ${{ inputs.url }}
BROKER_JWT: ${{ secrets.token }}
run: |
RESPONSE_CODE=$(curl -o /dev/null -s -w "%{http_code}" -X 'GET' \
$BROKER_URL/v1/health/token-check \
${{ inputs.url }}/v1/health/token-check \
-H 'accept: */*' \
-H 'Authorization: Bearer '"$BROKER_JWT"'' \
-H 'Authorization: Bearer '"${{ secrets.token }}"'' \
)
if [ "$RESPONSE_CODE" -eq 401 ]; then
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
uses: ./.github/workflows/check-token.yaml
with:
token: ${{ secrets.BROKER_JWT_0E727E83_F027_426A_A31C_D7C1CCEADDF6 }}
secrets: inherit

deploy-build:
name: Deploy development version
Expand Down

0 comments on commit 3bf4ec7

Please sign in to comment.