fix: debug failure writing to GITHUB_OUTPUT

Add some debug statements
This commit is contained in:
Jalil David Salamé Messina 2025-03-10 22:32:01 +01:00
parent 538f4706aa
commit ea5ae516ad
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -96,14 +96,22 @@ 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"
echo "GITHUB_OUTPUT=$GITHUB_OUTPUT"
ls -l "$GITHUB_OUTPUT"
echo "pr-number=$pr_number" >> "$GITHUB_OUTPUT"
# - name: Test that PR number is retrieveable
# if: inputs.comment-on-pr == 'true' && steps.pr-number.outputs.pr-number != ''
# env:
# PR_ID: ${{ steps.pr-number.outputs.pr-number }}
# run: |
# echo PR_ID="$PR_ID"
- 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: "<!-- AUTOGENERATED by nix-flake-outputs-size action -->"
- name: Create report