johnbeynon / render-deploy-action

A Github Action for trigging a deploy of a Render service.
42 stars 11 forks source link

Cannot read properties of null (reading 'message') #13

Open jcf opened 6 days ago

jcf commented 6 days ago

I have a Render service that pulls a Docker image from ghcr.io after a set of tests pass.

Run johnbeynon/render-deploy-action@747373cdb7b9b3f561438e063ee0815b71584f1b
  with:
    service-id: ***
    api-key: ***
    wait-for-success: true
Error: Cannot read properties of null (reading 'message')

I appreciate this isn't an official Render project, so I am reporting without any expectation of support. If I track down the issue, I'll report back here.


Update: it looks like commit is null when Render pulls an image rather than building from source, I guess because Render doesn't know anything about the source repository.

{
  "id": "dep-ct0t51l6l47c73b9casg",
  "commit": null,
  "image": {
    "ref": "ghcr.io/redacted/redacted:latest",
    "sha": "sha256:2ec40c30865b1bfbdc91e0d0025b3fd41a5075f702fab2a00c94b5bc94143911",
    "registryCredential": "GitHub"
  },
  "status": "update_in_progress",
  "trigger": "api",
  "createdAt": "2024-11-23T13:03:02.604524Z",
  "updatedAt": "2024-11-23T13:03:05.465993Z",
  "finishedAt": null
}

It's be great if image-based projects worked, too. Maybe Render could produce an official action that supports this.