Add step to update 'last modified' date in docs autogen workflow (#627)
This commit is contained in:
		
							parent
							
								
									058ea61d70
								
							
						
					
					
						commit
						ff6e03539c
					
				|  | @ -55,6 +55,12 @@ jobs: | ||||||
|           sudo npm install -D --save postcss-cli |           sudo npm install -D --save postcss-cli | ||||||
|           cd ../ |           cd ../ | ||||||
| 
 | 
 | ||||||
|  |       - name: Update last modified date in modified docs | ||||||
|  |         if: env.IS_CHANGED == 'true' | ||||||
|  |         run: | | ||||||
|  |           git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E "^website*" \ | ||||||
|  |           | sed -e 's/\(.*\)/"\1"/' | xargs sed -i "/date:/c\date: $(date +'%Y-%m-%d')" | ||||||
|  | 
 | ||||||
|       # Runs makefile goal - checks changes to /website folder and generates docs |       # Runs makefile goal - checks changes to /website folder and generates docs | ||||||
|       - name: Run Makefile goal |       - name: Run Makefile goal | ||||||
|         if: env.IS_CHANGED == 'true' |         if: env.IS_CHANGED == 'true' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue