mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:12:26 -05:00 
			
		
		
		
	[chore/cicd] Snapshot only if source code files have changed (#4115)
See https://codeberg.org/superseriousbusiness/gotosocial/issues/4113, follow up to https://codeberg.org/superseriousbusiness/gotosocial/pulls/4114 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4115 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
		
					parent
					
						
							
								bf10ca0203
							
						
					
				
			
			
				commit
				
					
						6c87918635
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -13,6 +13,13 @@ clone: | ||||||
| 
 | 
 | ||||||
| steps: | steps: | ||||||
|   snapshot: |   snapshot: | ||||||
|  |     # Snapshot only if some interesting | ||||||
|  |     # source code files have changed. | ||||||
|  |     when: | ||||||
|  |       # https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate | ||||||
|  |       # https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables | ||||||
|  |       - evaluate: '(not ("CI_PIPELINE_FILES" in $env)) || any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" || # startsWith "vendor/" || # startsWith "web/"  || # == "Dockerfile" })' | ||||||
|  | 
 | ||||||
|     # https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build |     # https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build | ||||||
|     image: superseriousbusiness/gotosocial-woodpecker-build:0.10.0 |     image: superseriousbusiness/gotosocial-woodpecker-build:0.10.0 | ||||||
|     pull: true |     pull: true | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue