From 2ba5195f62e6eb2b1a01f206bdd3f17bfefa239f Mon Sep 17 00:00:00 2001 From: Haiyi Zhong Date: Tue, 21 Jan 2025 11:46:53 -0500 Subject: [PATCH] fix proto gh action --- scripts/protocgen.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index e37fe0116..21ae4e518 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -8,7 +8,19 @@ proto_dirs=$(find ./axelar -path -prune -o -name '*.proto' -print0 | xargs -0 -n for dir in $proto_dirs; do for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do if grep "option go_package" $file &> /dev/null ; then - buf generate --template buf.gen.gogo.yml $file + echo "Processing: $file" + echo "Current directory: $(pwd)" + echo "buf.gen.gogo.yml content:" + cat buf.gen.gogo.yml + +# buf generate --template buf.gen.gogo.yml $file --debug + echo "Running buf generate..." + if buf generate $file --template buf.gen.gogo.yml --debug; then + echo "✅ buf generate executed successfully for $file" + else + echo "❌ buf generate failed for $file with exit code $?" + fi + fi done done