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
uses: actions/download-artifact@v4
with:
path: bin/
path: artifacts/
- name: Move binaries to bin directory
run: |
for dir in bin/*/; do
mv "$dir"* bin/
rmdir "$dir"
done
mkdir -p bin
find artifacts -type f -name 'agent-browser-*' -exec mv {} bin/ \;
rm -rf artifacts
chmod +x bin/agent-browser-* 2>/dev/null || true
ls -la bin/