Skip to content

Commit ae7c547

Browse files
committed
add optional namespace to env
1 parent 3687557 commit ae7c547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-hf-env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Deploy to Hugging Face Space
125125
env:
126126
HF_TOKEN: ${{ secrets.HF_TOKEN }}
127-
HF_NAMESPACE: ${{ env.HF_USERNAME }}
127+
HF_NAMESPACE: ${{ github.event.inputs.hf_namespace || env.HF_USERNAME }}
128128
run: |
129129
chmod +x scripts/deploy_to_hf.sh
130130
if [ -n "${{ github.event.inputs.base_image_sha }}" ]; then
@@ -156,7 +156,7 @@ jobs:
156156
- name: Deploy to Hugging Face Space
157157
env:
158158
HF_TOKEN: ${{ secrets.HF_TOKEN }}
159-
HF_NAMESPACE: ${{ env.HF_USERNAME }}
159+
HF_NAMESPACE: ${{ github.event.inputs.hf_namespace || env.HF_USERNAME }}
160160
run: |
161161
chmod +x scripts/deploy_to_hf.sh
162162
if [ -n "${{ github.event.inputs.base_image_sha }}" ]; then

0 commit comments

Comments
 (0)