fix: debug failure writing to GITHUB_OUTPUT
Add some debug statements
This commit is contained in:
parent
538f4706aa
commit
ea5ae516ad
1 changed files with 10 additions and 2 deletions
12
action.yml
12
action.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue