From 58249e9ad0e1d9f01ecc09731321b0ae3f50857d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Mon, 10 Mar 2025 22:32:01 +0100 Subject: [PATCH] fix: failure writing to GITHUB_OUTPUT The debug statements fix it? Also I was not de-referencing the output value. --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 413d132..867f1bb 100644 --- a/action.yml +++ b/action.yml @@ -96,14 +96,16 @@ runs: log "Retrieved index: $pr_number" log "Expected PR URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pulls/$pr_number" - echo "pr-number=$pr_number" >> "$GIHUB_OUTPUT" + log "GITHUB_OUTPUT=$GITHUB_OUTPUT" + log "$(ls -l "$GITHUB_OUTPUT")" + echo "pr-number=$pr_number" >> "$GITHUB_OUTPUT" - name: Find previous comment (if present) # We want to generate a comment, and we we able to fin the PR number if: inputs.comment-on-pr == 'true' && steps.pr-number.outputs.pr-number != '' id: find-comment uses: https://github.com/peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3 with: - issue-number: steps.pr-number.outputs.pr-number + issue-number: ${{ steps.pr-number.outputs.pr-number }} direction: first body-includes: "" - name: Create report