Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
ci/fix: pass HF_TOKEN to headers when pinging space
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw authored Jun 20, 2024
1 parent 54b8ec4 commit fd3cfb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/warmer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
runs-on: ubuntu-latest
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}

steps:
- name: cURL the API
run: |
healthcheck() {
curl https://$GITHUB_REPOSITORY_OWNER-$REPOSITORY_NAME.hf.space
curl https://$GITHUB_REPOSITORY_OWNER-$REPOSITORY_NAME.hf.space \
-H "Authorization: Bearer $HF_TOKEN" | jq '.["X-Apple-I-Client-Time"]'
}
healthcheck || healthcheck || healthcheck

0 comments on commit fd3cfb3

Please sign in to comment.