Skip to content

Commit

Permalink
Update roboanimals-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kx9x authored Jun 26, 2022
1 parent cc70739 commit c916c93
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/roboanimals-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,30 @@ jobs:
if: always() && inputs.send == 'true' && env.SAFE_LINK == ''
run: |
exit 1
- name: Read error.txt
if: failure() && inputs.from_pr == 'true'
id: read_error
uses: juliangruber/read-file-action@v1
with:
path: ./error.txt

- name: Read output.txt
if: failure() && inputs.from_pr == 'true'
id: read_output
uses: juliangruber/read-file-action@v1
with:
path: ./output.txt

- name: Edit comment with error message
if: ${{ failure() && inputs.from_pr == 'true' }}
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ inputs.comment-id }}
body: |
> Failure: check output ${{ steps.vars.outputs.run-url }}
> Output: ${{ steps.read_output.outputs.content }}
> Error: ${{ steps.read_error.outputs.content }}
- name: Edit comment with dry run message
if: ${{ inputs.send == 'false' && inputs.from_pr == 'true'}}
Expand Down

0 comments on commit c916c93

Please sign in to comment.