hasura / hasura-cloud-preview-apps

MIT License
22 stars 10 forks source link

Fix workflow runs failure #179

Closed varundey closed 1 year ago

varundey commented 1 year ago

Fixes https://github.com/hasura/hasura-cloud-preview-apps/issues/114 wherein the action gets terminated abruptly cos it can't find a response for the job id here.

Reason for this failure is cos we do not fetch the latest task event internally from backend and assume the first result will be the github deployment job id.

This PR fixes the bug by sorting the task events in descending order so that the first item is always the most recent one

varundey commented 1 year ago

Looks good! @varundey can we update the version as well?

We have already bumped up the version in the last commit that went in with https://github.com/hasura/hasura-cloud-preview-apps/pull/177. I feel this can go in along with that.