fix: download artifacts to temp directory to avoid naming conflict (#221)

The download-artifact action creates directories named after each artifact.
When downloading to bin/, this caused conflicts because the artifact directory
names matched the binary names (e.g., bin/agent-browser-darwin-arm64/agent-browser-darwin-arm64).

Fix by downloading to artifacts/ first, then using find to move the binaries to bin/.
This commit is contained in:
Chris Tate
2026-01-23 13:15:51 -06:00
committed by GitHub
parent 9281f46823
commit eb8325e9b4
+4 -5
View File
@@ -193,14 +193,13 @@ jobs:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: bin/ path: artifacts/
- name: Move binaries to bin directory - name: Move binaries to bin directory
run: | run: |
for dir in bin/*/; do mkdir -p bin
mv "$dir"* bin/ find artifacts -type f -name 'agent-browser-*' -exec mv {} bin/ \;
rmdir "$dir" rm -rf artifacts
done
chmod +x bin/agent-browser-* 2>/dev/null || true chmod +x bin/agent-browser-* 2>/dev/null || true
ls -la bin/ ls -la bin/