diff --git a/action.yml b/action.yml index 57a7048..66238ce 100644 --- a/action.yml +++ b/action.yml @@ -86,6 +86,10 @@ runs: pr_number=$(echo "$prs" | 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 if [ -z "$pr_number" ]; then warn "No PR created for this commit" @@ -96,8 +100,6 @@ runs: log "Retrieved index: $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" - name: Find previous comment (if present) # We want to generate a comment, and we we able to fin the PR number