Skip to content

Commit

Permalink
Add deployment_url to result
Browse files Browse the repository at this point in the history
  • Loading branch information
BTSmolders committed Apr 21, 2022
1 parent 9041d9d commit f97190d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ Matrix containing the following keys (with example data):
{
"environment": "production",
"deployment_id": 1234,
"deployment_url": "/repos/pivvenit/list-queued-deployments-action/deployments/1234/statuses",
"status": "queued",
"ref": "deployment ref here",
"deployment": {/* Raw deployment response from the Github Rest API */},
"deployment_status": { /* Raw deployment_status response from the Github Rest API */}
"deployment_status": { /* The first status from the deployment_status response from the Github Rest API */}
}
```

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const github = require('@actions/github');
output.push({
environment: deployment.environment,
deployment_id: deployment.id,
deployment_url: deployment.url,
status: statuses[0].state,
ref: deployment.ref,
deployment: deployment,
Expand Down

0 comments on commit f97190d

Please sign in to comment.