shake site: also commit & push home page when wiki links change
[ci skip]
This commit is contained in:
		
							parent
							
								
									7af5ee4863
								
							
						
					
					
						commit
						e5f3dd1a75
					
				
							
								
								
									
										9
									
								
								Shake.hs
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Shake.hs
									
									
									
									
									
								
							| @ -471,6 +471,15 @@ main = do | |||||||
|       -- update wiki links on website front page |       -- update wiki links on website front page | ||||||
|       need [ "site/index.md" ] |       need [ "site/index.md" ] | ||||||
| 
 | 
 | ||||||
|  |       -- if it changed, commit (and push) it. | ||||||
|  |       -- XXX the push will cause another webhook invocation of this script, try to avoid | ||||||
|  |       cmd_ Shell | ||||||
|  |         "git diff --quiet -- site/index.md" | ||||||
|  |         "|| (" | ||||||
|  |           "git commit -m ';site: home: wiki links' -m '[ci skip]' site/index.md" | ||||||
|  |           "&& git push" | ||||||
|  |         ")" | ||||||
|  | 
 | ||||||
|       -- update the live site based on all latest content |       -- update the live site based on all latest content | ||||||
|       need [ "website-all" ] |       need [ "website-all" ] | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user