hemantvirmani commited on
Commit
0d4702f
·
unverified ·
1 Parent(s): 9c5d27f

Add paths-ignore to sync-to-hf workflow

Browse files

Ignore specific paths in sync workflow on push events.

Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +6 -1
.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
+