David Pomerenke
commited on
Commit
·
019cada
1
Parent(s):
f9431d1
Add commit message to HF push
Browse files
.github/workflows/huggingface-upload.yml
CHANGED
|
@@ -23,6 +23,7 @@ jobs:
|
|
| 23 |
- name: Upload to Hugging Face
|
| 24 |
env:
|
| 25 |
HUGGINGFACE_ACCESS_TOKEN: ${{ secrets.HUGGINGFACE_ACCESS_TOKEN }}
|
|
|
|
| 26 |
run: |
|
| 27 |
python -c '
|
| 28 |
from huggingface_hub import upload_folder
|
|
@@ -34,5 +35,6 @@ jobs:
|
|
| 34 |
repo_id="datenlabor-bmz/ai-language-monitor",
|
| 35 |
repo_type="space",
|
| 36 |
token=os.environ["HUGGINGFACE_ACCESS_TOKEN"],
|
|
|
|
| 37 |
)
|
| 38 |
'
|
|
|
|
| 23 |
- name: Upload to Hugging Face
|
| 24 |
env:
|
| 25 |
HUGGINGFACE_ACCESS_TOKEN: ${{ secrets.HUGGINGFACE_ACCESS_TOKEN }}
|
| 26 |
+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
| 27 |
run: |
|
| 28 |
python -c '
|
| 29 |
from huggingface_hub import upload_folder
|
|
|
|
| 35 |
repo_id="datenlabor-bmz/ai-language-monitor",
|
| 36 |
repo_type="space",
|
| 37 |
token=os.environ["HUGGINGFACE_ACCESS_TOKEN"],
|
| 38 |
+
commit_message="Upload from GitHub Actions: " + os.environ["COMMIT_MESSAGE"],
|
| 39 |
)
|
| 40 |
'
|