Skip to content

Commit

Permalink
Echo PR check response detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Apr 16, 2024
1 parent 2ee9bbd commit 2ad9cf6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update-build-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ jobs:
BRANCH=main
RESPONSE=$(curl -X GET -H "Authorization: token $TOKEN" "https://api.github.com/repos/$REPO/pulls?head=$OWNER:trunk")
PR_NUMBER=$(echo "$RESPONSE" | jq -r '.[].number')
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
if [ -n "$PR_NUMBER" ]; then
echo "PR number found: $PR_NUMBER"
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
else
echo "No pull request found."
fi
- name: Create new Pull Request
id: create_pr
Expand Down

0 comments on commit 2ad9cf6

Please sign in to comment.