Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlutermade committed Sep 17, 2023
1 parent 0571e67 commit 8829bbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/readyToReview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ jobs:
# Verbose setting SHA when using Pull_Request event trigger to fix #16. (For push even trigger this is not necessary.)
sha: ${{ github.event.pull_request.head.sha }}

- name: Has Failure
if: failure()
id: has_failure
run: |
echo "has_failure=true" >> $GITHUB_OUTPUT
- name: Output CONTENT
id: CONTENT
run: |
echo "content=[{\"title\": \"${{ steps.PR.outputs.pr_title }}\", \"url\": \"${{ steps.PR.outputs.pr_url }}\", \"description\": \"## Ready to review PR\",\"fields\": [{\"name\": \"Owner\", \"value\": \"${{fromJSON(steps.PR.outputs.PR).user.login}}\"}, {\"name\": \"Status\", \"value\": \"${{github.action_status}}\"}], \"footer\": {\"text\": \"created at ${{steps.PR.outputs.pr_created_at }}\"}}]" >> $GITHUB_OUTPUT
echo "content=[{\"title\": \"${{ steps.PR.outputs.pr_title }}\", \"url\": \"${{ steps.PR.outputs.pr_url }}\", \"description\": \"## Ready to review PR\",\"fields\": [{\"name\": \"Owner\", \"value\": \"${{fromJSON(steps.PR.outputs.PR).user.login}}\"}, {\"name\": \"Status\", \"value\": \"${{ steps.has_failure.outputs.has_failure && 'error' || 'success' }}\"}], \"footer\": {\"text\": \"created at ${{steps.PR.outputs.pr_created_at }}\"}}]" >> $GITHUB_OUTPUT
- name: Can Review PR
env:
Expand Down

0 comments on commit 8829bbd

Please sign in to comment.