Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Ensure there are no binaries the change (#82)

Jaana Dogan2a0742c3ace1
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 09a5b81..218bec6 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -26,3 +26,14 @@ jobs:
- name: Test
run: go test -v ./...
+
+ - name: Check for binary files in PR
+ run: |
+ # Get the list of files where Git shows no line count (binary)
+ BINARIES=$(git diff --numstat origin/${{ github.base_ref }}...HEAD | grep "^-" | cut -f3)
+
+ if [ -n "$BINARIES" ]; then
+ echo "Binary files detected in diff:"
+ echo "$BINARIES"
+ exit 1 # Fail the check if binaries are found
+ fi