Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromcunha committed Dec 18, 2024
1 parent 5d50d73 commit 1df4c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
prs=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls?state=open&per_page=100" | \
jq -r '[.[] | select(.user.type == "Bot")][0] | {url: .html_url, title: .title} | @json')
jq -r '[.[] | select(.user.type == "Bot" and (.title | contains("Release")))][0] | {url: .html_url, title: .title} | @json')
echo "Found PRs: $prs"
if [[ $prs == "null" || $prs == "{}" ]]; then
echo "BOT_PR_TITLE=NULL" >> $GITHUB_ENV
Expand Down

0 comments on commit 1df4c6f

Please sign in to comment.