Open
Description
TL;DR
When I deploy a service, I want to know which revision was deployed so that I can run downstream checks about it (e.g. is it ready?)
Detailed design
When invoking the cloud run command-line with format json (as this action does), the status output looks somewhat like this:
{
"@type": "type.googleapis.com/google.cloud.run.v1.Service",
"apiVersion": "serving.knative.dev/v1",
"kind": "Service",
...
"status": {
"address": {
"url": "https://foo.a.run.app"
},
"conditions": [...],
"latestCreatedRevisionName": "foo-00005-vdk",
"latestReadyRevisionName": "foo-00005-vdk",
"observedGeneration": 5,
"traffic": [
{
"latestRevision": true,
"percent": 100,
"revisionName": "foo-00005-vdk"
}
],
"url": "https://foo.run.app"
}
}
Currently, according to the README, only the url is exposed as output. If the latestCreatedRevisionName
was exposed as well, it could be used to do downstream checks for that specific revision.
Additional information
Would you accept a PR?