Skip to content

Commit

Permalink
fix proto gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyizxx committed Jan 21, 2025
1 parent 8041198 commit 2ba5195
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ba5195

Please sign in to comment.