Skip to content

Commit e6de35d

Browse files
ngalaikoclaude
andcommitted
attach github integration on deploy
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 00291c0 commit e6de35d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
# exe.dev VM names are global; keep this unique. Defined once, used below.
1515
env:
1616
VM_NAME: ngalaiko-computer
17+
GH_INTEGRATION: computer
1718

1819
concurrency:
1920
group: deploy
@@ -70,3 +71,13 @@ jobs:
7071
--env RESTIC_PASSWORD="$RESTIC_PASSWORD" \
7172
--env B2_ACCOUNT_ID=0036cfed748e70c0000000002 \
7273
--env B2_ACCOUNT_KEY="$B2_ACCOUNT_KEY"
74+
75+
# rm/new drops vm: attachments, so re-attach every deploy; first deploy
76+
# creates the integration (the GitHub App link itself is web-UI one-time).
77+
- name: Attach GitHub integration
78+
run: |
79+
ssh -i ~/.ssh/id_ed25519 exe.dev integrations attach "$GH_INTEGRATION" "vm:$VM_NAME" \
80+
|| ssh -i ~/.ssh/id_ed25519 exe.dev integrations add github \
81+
--name "$GH_INTEGRATION" \
82+
--repository "${{ github.repository }}" \
83+
--attach "vm:$VM_NAME"

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
jq
6565
chromium
6666
(import ./packages/agent-browser { inherit pkgs; })
67-
gh
67+
gh
6868
];
6969
};
7070

0 commit comments

Comments
 (0)