Given a workflow that is triggered on = “deployment” I would like to both deploy and update the deployment-api. From what I gather I guess these are my alternatives:
Deploy action does a http call to deployments api on failure/success
Deploy action saves deploy result in a file and uses exit code 0 for success. The sequential action reads from that file and does a http call to deployments api.
Use checks api or a Github App to notify Deployments API on failure/success
1 I don’t like because it is hard to reuse code. 2 reuses code, but complicates deploy actions. 3 would be great, but how?
Anyone doing something similar? All the examples I find, that does deployment, never updates the deployment api. Most of them just does deploy automatically if the branch is the master branch.