File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 273273
274274echo " 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
You can’t perform that action at this time.
0 commit comments