Add paths-ignore to sync-to-hf workflow
Browse filesIgnore specific paths in sync workflow on push events.
.github/workflows/sync-to-hf.yml
CHANGED
|
@@ -4,6 +4,11 @@ on:
|
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
- main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
jobs:
|
| 9 |
sync:
|
|
@@ -23,4 +28,4 @@ jobs:
|
|
| 23 |
git config --global user.name "github-actions[bot]"
|
| 24 |
git remote add hf https://hemantvirmani:$HF_SYNC_TOKEN@huggingface.co/spaces/hemantvirmani/Final_Assignment_Template
|
| 25 |
git push hf main --force
|
| 26 |
-
|
|
|
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
- main
|
| 7 |
+
paths-ignore:
|
| 8 |
+
- 'README.md'
|
| 9 |
+
- 'docs/**'
|
| 10 |
+
- '**.md'
|
| 11 |
+
- 'LICENSE'
|
| 12 |
|
| 13 |
jobs:
|
| 14 |
sync:
|
|
|
|
| 28 |
git config --global user.name "github-actions[bot]"
|
| 29 |
git remote add hf https://hemantvirmani:$HF_SYNC_TOKEN@huggingface.co/spaces/hemantvirmani/Final_Assignment_Template
|
| 30 |
git push hf main --force
|
| 31 |
+
|