Skip to content

Commit

Permalink
Update scripts/auto-update/version-in-file.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Tiffany Hrabusa <[email protected]>
  • Loading branch information
chalin and tiffany76 committed Feb 10, 2025
1 parent 35cf16c commit 00a1b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/auto-update/version-in-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ branch="opentelemetrybot/auto-update-$repo-$latest_version"

echo "Looking for existing PRs with branch '$branch'."
existing_pr_all=$(gh pr list --state all --head "$branch")
# `gh pr list` a list of PRs, each line starting with a PR number if there's a
# match. Otherwise returns "no ... matches". Test for PR number:
# `gh pr list` is a list of PRs, each line starting with a PR number if there's
# a match. Otherwise returns "no ... matches". Test for PR number:
if [[ "$existing_pr_all" =~ ^[0-9] ]]; then
echo "PR(s) already exist for '$message':"
echo $existing_pr_all
Expand Down

0 comments on commit 00a1b0b

Please sign in to comment.