You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	module tag script for releng (#414)
This commit is contained in:
		
							
								
								
									
										13
									
								
								tag_latest_modules.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								tag_latest_modules.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| set -xe | ||||
|  | ||||
| cd $(dirname $0) | ||||
|  | ||||
| LATEST_TAG=$(git tag -l|grep '^v'|sort -V -r|head -n 1) | ||||
| LATEST_REF=$(git rev-parse $LATEST_TAG) | ||||
| PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | sort) | ||||
|  | ||||
| for dir in $PACKAGE_DIRS; do | ||||
| 	git tag -m "Submodule ${LATEST_TAG}" -s ${dir#./}/${LATEST_TAG} ${LATEST_REF} | ||||
| done | ||||
		Reference in New Issue
	
	Block a user