Skip to content

Commit e994642

Browse files
nsheapsclaude
andauthored
Fix arcane-deploy: timeout, API parsing, and repo enabled state (#15)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent a257437 commit e994642

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/arcane-deploy/action.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ arcane_api() {
8282
local http_code
8383
# [H2] Capture curl exit code separately to detect transport failures
8484
http_code=$(curl -s -w "%{http_code}" \
85-
--max-time 30 --connect-timeout 10 \
85+
--max-time 360 --connect-timeout 10 \
8686
-X "${method}" \
8787
-H "X-Api-Key: ${API_KEY}" \
8888
-H "Content-Type: application/json" \
@@ -216,7 +216,7 @@ ensure_repository() {
216216
local update_payload
217217
update_payload=$(jq -n \
218218
--arg token "${GIT_TOKEN}" \
219-
'{token: $token}')
219+
'{token: $token, enabled: true}')
220220

221221
arcane_api PUT "/customize/git-repositories/${REPOSITORY_ID}" \
222222
-d "${update_payload}" > /dev/null
@@ -229,7 +229,7 @@ ensure_repository() {
229229
--arg sshKey "${SSH_PRIVATE_KEY}" \
230230
--arg username "git" \
231231
--arg sshHostKeyVerification "${SSH_HOST_KEY_VERIFICATION}" \
232-
'{sshKey: $sshKey, username: $username, sshHostKeyVerification: $sshHostKeyVerification}')
232+
'{sshKey: $sshKey, username: $username, sshHostKeyVerification: $sshHostKeyVerification, enabled: true}')
233233

234234
arcane_api PUT "/customize/git-repositories/${REPOSITORY_ID}" \
235235
-d "${update_payload}" > /dev/null

0 commit comments

Comments
 (0)