Skip to content

Commit

Permalink
docs: update outputs with comment-node-id
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans authored Apr 2, 2024
1 parent 3eae4d3 commit bae218c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The action will output the comment ID of the comment matching the search criteri

#### Outputs

The `comment-id`, `comment-body`, `comment-author` and `comment-created-at` of the matching comment found will be output for use in later steps.
The `comment-id`, `comment-node-id`, `comment-body`, `comment-author` and `comment-created-at` of the matching comment found will be output for use in later steps.
They will be empty strings if no matching comment was found.
Note that in order to read the step outputs the action step must have an id.

Expand All @@ -108,6 +108,7 @@ e.g. If `comment-id` is an empty string `steps.fc.outputs.comment-id == 0` evalu
body-includes: search string 1
- run: |
echo ${{ steps.fc.outputs.comment-id }}
echo ${{ steps.fc.outputs.comment-node-id }}
echo ${{ steps.fc.outputs.comment-body }}
echo ${{ steps.fc.outputs.comment-author }}
echo ${{ steps.fc.outputs.comment-created-at }}
Expand Down

0 comments on commit bae218c

Please sign in to comment.