Deployment review comment
ActionsExtract the deployment review comment specified as part of Manual approval/rejection of a workflow execution
v1.0.1
LatestBy ambilykk
Tags
(1)Extract the deployment review comment specified as part of Manual approval/rejection of a workflow execution
Include the deployment-review-comment action in your workflow.
1: Pass the GITHUB_TOKEN
- name: Testing deployment review comment action
id: review
uses: ambilykk/deployment-review-comment@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: display output
uses: actions/github-script@v6
with:
script: |
for(const data of ${{ steps.review.outputs.comments}}){
console.log(data)
}
- Output generated
Below screenshot shows the execution of the action after two deployment reviews - one for the environment 'dev' and another for the environment 'test'. Deployment approved for the 'test' environment and rejected for the 'dev' environment
Name | Required | Input/Output | Description |
---|---|---|---|
token | Yes | Input | PAT Token for access |
run-id | No | Input | Used for extracting the deployment review comments not related to current run |
comments | Output | Array of deployment review details. Review the Output section for the structure |
comments - ouput defined as an array with following structure
[
{
user: 'user who approved/rejected',
comment: 'comment as part of the review',
state: 'approved/rejected',
envitonment: 'environment name'
}
]
The scripts and documentation in this project are released under the MIT License
Deployment review comment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.