From 6bea6092728ff347cffca4b576d6eaef468d1e6a Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 24 Jan 2026 18:32:17 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20ci:=20fix=20build=20artifact?= =?UTF-8?q?=20collection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace directory scanning with find command to locate all zip files in bazel output directory. --- .github/workflows/build.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9468659..04fef28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,14 +22,7 @@ jobs: run: | mkdir -p release_artifacts BIN_PATH=$(bazel info bazel-bin) - for dir in "$BIN_PATH"/*/ ; do - dir_name=$(basename "$dir") - zip_file="$dir/${dir_name}.zip" - if [ -f "$zip_file" ]; then - echo "Found artifact: $zip_file" - cp "$zip_file" release_artifacts/ - fi - done + find "$BIN_PATH" -name "*.zip" -exec cp {} release_artifacts/ \; - name: capture build artifacts if: success() uses: actions/upload-artifact@v4 From 73b932f97516237e5f7b9fa315a6923989a113b7 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 24 Jan 2026 18:51:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20ci:=20fix=20artifact=20colle?= =?UTF-8?q?ction=20for=20subprojects=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build artifact collection logic to only search within subprojects directory, avoiding inclusion of other ZIP files. The previous find command recursively searched all ZIP files in bazel-bin, which could include unintended artifacts. The new loop specifically targets subprojects/*/ directories and looks for directory-named ZIP files, matching the original workflow's intent. Addresses review feedback from PR #??. --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04fef28..5514ac0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,13 @@ jobs: run: | mkdir -p release_artifacts BIN_PATH=$(bazel info bazel-bin) - find "$BIN_PATH" -name "*.zip" -exec cp {} release_artifacts/ \; + for dir in "$BIN_PATH/subprojects"/*/ ; do + dir_name=$(basename "$dir") + zip_file="$dir/${dir_name}.zip" + if [ -f "$zip_file" ]; then + cp "$zip_file" release_artifacts/ + fi + done - name: capture build artifacts if: success() uses: actions/upload-artifact@v4