mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
use code instead of status
This commit is contained in:
parent
e5ad1d945e
commit
7c28690527
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ proc postGhApi(url: string, body: JsonNode) =
|
|||
"X-GitHub-Api-Version": "2022-11-28",
|
||||
})
|
||||
let response = client.post(url, body = $body)
|
||||
info fmt"Status: {response.status}"
|
||||
try:
|
||||
info fmt"Status: {response.code}"
|
||||
except:
|
||||
error "failed to get response code"
|
||||
|
||||
proc createDispatch*(workflowFileName: string, `ref`: string) =
|
||||
## https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
|
||||
|
|
Loading…
Reference in a new issue