You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
module tag script for releng (#414)
This commit is contained in:
Executable
+13
@@ -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