ci(aio): exclude changes in aio/content folder
This commit is contained in:
		
							parent
							
								
									db96c963a8
								
							
						
					
					
						commit
						1bf7ba87a0
					
				| @ -43,20 +43,15 @@ timestamp=$(date +%s) | |||||||
| payloadData="$payloadData\"timestamp\": $timestamp, " | payloadData="$payloadData\"timestamp\": $timestamp, " | ||||||
| 
 | 
 | ||||||
| # Add change source: application, dependencies, or 'application+dependencies' | # Add change source: application, dependencies, or 'application+dependencies' | ||||||
| yarnChanged=false | applicationChanges=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | grep -v ${parentDir}/content | grep -v ${parentDir}/yarn.lock | wc -l) | ||||||
| allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | wc -l) | dependencyChanges=$(git diff --name-only $TRAVIS_COMMIT_RANGE ${parentDir}/yarn.lock | wc -l) | ||||||
| allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir) |  | ||||||
| 
 | 
 | ||||||
| if [[ $allChangedFileNames == *"yarn.lock"* ]]; then | if [[ $dependencyChanges -eq 1 ]] && [[ $applicationChanges -eq 0 ]]; then | ||||||
|   yarnChanged=true |  | ||||||
| fi |  | ||||||
| 
 |  | ||||||
| if [[ $allChangedFiles -eq 1 ]] && [[ "$yarnChanged" = true ]]; then |  | ||||||
|   # only yarn.lock changed |   # only yarn.lock changed | ||||||
|   change='dependencies' |   change='dependencies' | ||||||
| elif [[ $allChangedFiles -gt 1 ]] && [[ "$yarnChanged" = true ]]; then | elif [[ $dependencyChanges -eq 1 ]] && [[ $applicationChanges -gt 0 ]]; then | ||||||
|   change='application+dependencies' |   change='application+dependencies' | ||||||
| elif [[ $allChangedFiles -gt 0 ]]; then | elif [[ $applicationChanges -gt 0 ]]; then | ||||||
|   change='application' |   change='application' | ||||||
| else | else | ||||||
|   # Nothing changed in aio/ |   # Nothing changed in aio/ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user