fix: move logs up
All checks were successful
/ check (treefmt) (push) Successful in 3s
/ check-renovaterc (push) Successful in 2s
/ report-size (push) Successful in 1s

Otherwise they are missing from the failure case
This commit is contained in:
Jalil David Salamé Messina 2025-03-10 23:49:07 +01:00
parent 0a637165fe
commit 5c40a31e3e
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -86,6 +86,10 @@ runs:
pr_number=$(echo "$prs" | pr_number=$(echo "$prs" |
jq --arg head_ref "$head_ref" '.[] | select(.head.ref == $head_ref) | .number') jq --arg head_ref "$head_ref" '.[] | select(.head.ref == $head_ref) | .number')
# This seems to create the file???
log "GITHUB_OUTPUT=$GITHUB_OUTPUT"
log "$(ls -l "$GITHUB_OUTPUT")"
# Protect against running before a PR is made or if it is triggered on the main branch # Protect against running before a PR is made or if it is triggered on the main branch
if [ -z "$pr_number" ]; then if [ -z "$pr_number" ]; then
warn "No PR created for this commit" warn "No PR created for this commit"
@ -96,8 +100,6 @@ runs:
log "Retrieved index: $pr_number" log "Retrieved index: $pr_number"
log "Expected PR URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pulls/$pr_number" log "Expected PR URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pulls/$pr_number"
log "GITHUB_OUTPUT=$GITHUB_OUTPUT"
log "$(ls -l "$GITHUB_OUTPUT")"
echo "pr-number=$pr_number" >> "$GITHUB_OUTPUT" echo "pr-number=$pr_number" >> "$GITHUB_OUTPUT"
- name: Find previous comment (if present) - name: Find previous comment (if present)
# We want to generate a comment, and we we able to fin the PR number # We want to generate a comment, and we we able to fin the PR number