Skip to content

Commit a85ec47

Browse files
committed
test
1 parent 0d8241b commit a85ec47

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/actions/copilot/action.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,22 +211,22 @@ runs:
211211
212212
# Add other options
213213
COPILOT_ARGS+=(--log-level "$LOG_LEVEL")
214-
COPILOT_ARGS+=(--log-dir "$XDG_CONFIG_HOME/.copilot/logs")
215-
COPILOT_ARGS+=(--save-trajectory-output "$XDG_CONFIG_HOME/.copilot/trajectory.md")
214+
COPILOT_ARGS+=(--log-dir "$HOME/.copilot/logs")
215+
COPILOT_ARGS+=(--save-trajectory-output "$HOME/.copilot/trajectory.md")
216216
217217
# Debug: Show the full command being executed
218218
echo "========================================"
219219
echo "Executing Copilot CLI with arguments:"
220-
printf '%s\n' "${COPILOT_ARGS[@]}"
220+
printf '%s ' "${COPILOT_ARGS[@]}"
221221
echo "========================================"
222222
223223
# Execute the command with array expansion for proper quoting
224224
copilot "${COPILOT_ARGS[@]}"
225225
EXIT_CODE=$?
226226
227227
# Set outputs
228-
echo "trajectory=$XDG_CONFIG_HOME/.copilot/trajectory.md" >> $GITHUB_OUTPUT
229-
echo "logs_path=$XDG_CONFIG_HOME/.copilot/logs" >> $GITHUB_OUTPUT
228+
echo "trajectory=$HOME/.copilot/trajectory.md" >> $GITHUB_OUTPUT
229+
echo "logs_path=$HOME/.copilot/logs" >> $GITHUB_OUTPUT
230230
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
231231
env:
232232
GH_TOKEN: ${{ inputs.github-token }}
@@ -250,8 +250,10 @@ runs:
250250
with:
251251
name: copilot-logs-${{ github.run_id }}-${{ github.run_attempt }}
252252
path: |
253+
${{ steps.copilot.outputs.logs_path }}
254+
${{ steps.copilot.outputs.trajectory }}
253255
${{ steps.configure.outputs.path }}/
254256
${{ runner.temp }}/runtime-logs/
255257
if-no-files-found: warn
256-
- name: Setup tmate session
257-
uses: mxschmitt/action-tmate@v3
258+
# - name: Setup tmate session
259+
# uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)