Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output Deployment ID #440

Open
bradyclifford opened this issue Sep 23, 2024 · 0 comments · May be fixed by #439
Open

Output Deployment ID #440

bradyclifford opened this issue Sep 23, 2024 · 0 comments · May be fixed by #439

Comments

@bradyclifford
Copy link

bradyclifford commented Sep 23, 2024

Output the deployment ID as part of the action.

This ID already is accessible in the action.

The output will allow subsequent actions to update the Deployment Status of that deployment by calling:

PUT https://.scm.azurewebsites.net/api/deployments/{deploymentId}
{
  "id": "deployment-id",
  "status": 4,                    // Optional, numeric status (e.g., 3 = success, 4 = failed)
  "message": "custom message",     // Optional, a message describing the deployment
  "log_url": "http://yourlog.com", // Optional, a URL for deployment logs
  "active": true                   // Optional, mark this deployment as the active one
}

This endpoint allows updates to a custom message and log_url field. Where we can add the release, a link back to the GitHub runner that invoked the deployment, etc.

Granted, it would be great if we could have this action allow for custom message and set the log_url to the GitHub workflow run. But for now, just outputting the deployment ID is good enough. #74 #442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant