Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bash != GH.
  • Loading branch information
Narsil committed Jan 23, 2025
commit 8791b261f5bde8baed39b7c047abc4ce67796e84
4 changes: 2 additions & 2 deletions .github/workflows/python-api-sentence-transformers-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
- name: Deploy on API
run: |
# Load the tags into the env
echo sha-${env.GITHUB_SHA_SHORT}
echo sha-${{ env.GITHUB_SHA_SHORT }}
# Weird single quote escape mechanism because string interpolation does
# not work on single quote in bash
curl -H "Authorization: Bearer ${{ secrets.API_GITHUB_TOKEN }}" https://api.github.com/repos/huggingface/api-inference/actions/workflows/update_community.yaml/dispatches -d '{"ref":"main","inputs":{"framework":"SENTENCE_TRANSFORMERS","tag": "'"sha-${env.GITHUB_SHA_SHORT}"'"}}'
curl -H "Authorization: Bearer ${{ secrets.API_GITHUB_TOKEN }}" https://api.github.com/repos/huggingface/api-inference/actions/workflows/update_community.yaml/dispatches -d '{"ref":"main","inputs":{"framework":"SENTENCE_TRANSFORMERS","tag": "'"sha-${{ env.GITHUB_SHA_SHORT }}"'"}}'

Loading