Skip to content

Commit

Permalink
Expose Conclusion as an action output (#58)
Browse files Browse the repository at this point in the history
Add conclusion output to yaml

* Update action.yml
  • Loading branch information
Danphillipz committed Oct 8, 2022
1 parent a382075 commit 2fcaa46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ outputs:
description: The ID of the workflow that was triggered by this action
workflow_url:
description: The URL of the workflow that was triggered by this action
conclusion:
description: Conclusion of the job, i.e pass/failure
runs:
using: 'docker'
image: 'Dockerfile'
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ wait_for_workflow_to_finish() {

echo "Checking conclusion [${conclusion}]"
echo "Checking status [${status}]"
echo "::set-output name=conclusion::${conclusion}"
done

if [[ "${conclusion}" == "success" && "${status}" == "completed" ]]
Expand Down

0 comments on commit 2fcaa46

Please sign in to comment.