Skip to content

Commit 354d436

Browse files
authored
Deploy copilot-client.js to /opt/gh-aw/copilot/ (#15629)
1 parent 6871c5c commit 354d436

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

actions/setup/setup.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,20 @@ fi
273273

274274
echo "Successfully copied ${SAFE_OUTPUTS_COUNT} safe-outputs files to ${SAFE_OUTPUTS_DEST}"
275275

276+
# Copy copilot-client.js to /opt/gh-aw/copilot/ directory
277+
COPILOT_DEST="/opt/gh-aw/copilot"
278+
echo "Copying copilot-client.js to ${COPILOT_DEST}"
279+
mkdir -p "${COPILOT_DEST}"
280+
281+
if [ -f "${JS_SOURCE_DIR}/copilot-client.js" ]; then
282+
cp "${JS_SOURCE_DIR}/copilot-client.js" "${COPILOT_DEST}/copilot-client.js"
283+
echo "✓ Successfully copied copilot-client.js to ${COPILOT_DEST}"
284+
else
285+
echo "::error::copilot-client.js not found in ${JS_SOURCE_DIR}"
286+
echo "::error::This file is required for copilot-client functionality"
287+
exit 1
288+
fi
289+
276290
# Install @actions/github package ONLY if safe-output-projects flag is enabled
277291
# This package is needed by the unified handler manager to create separate Octokit clients
278292
# for project operations that require GH_AW_PROJECT_GITHUB_TOKEN

0 commit comments

Comments
 (0)