Skip to content

Commit 4f8bf83

Browse files
authored
Merge pull request #21 from metalaureate:copilot/inspect-github-cloud-agent-jobs
fix: tend hooks silent-fail in GitHub cloud agent due to hardcoded local binary path
2 parents c5b6042 + db21af7 commit 4f8bf83

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/hooks/tend.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"SessionStart": [
44
{
55
"type": "command",
6-
"command": "/Users/possum/bin/tend hook session-start",
6+
"command": "/usr/local/bin/tend hook session-start",
77
"env": {
88
"TEND_HOOK_DEBUG": "1"
99
}
@@ -12,7 +12,7 @@
1212
"UserPromptSubmit": [
1313
{
1414
"type": "command",
15-
"command": "/Users/possum/bin/tend hook user-prompt",
15+
"command": "/usr/local/bin/tend hook user-prompt",
1616
"env": {
1717
"TEND_HOOK_DEBUG": "1"
1818
}
@@ -21,7 +21,7 @@
2121
"Stop": [
2222
{
2323
"type": "command",
24-
"command": "/Users/possum/bin/tend hook stop",
24+
"command": "/usr/local/bin/tend hook stop",
2525
"env": {
2626
"TEND_HOOK_DEBUG": "1"
2727
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation,
4+
# and allow manual testing through the repository's "Actions" tab.
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Install tend
25+
run: |
26+
curl -sSfL -o /tmp/tend "https://github.com/metalaureate/tend-cli/releases/latest/download/tend-linux-x64"
27+
chmod +x /tmp/tend
28+
mv /tmp/tend /usr/local/bin/tend

0 commit comments

Comments
 (0)