From bae218c4f45cc5dec873fe55c38c7e0eac0d2d18 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:23:47 +0900 Subject: [PATCH] docs: update outputs with comment-node-id --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a5e37f2..3e8e4f4 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 }}