Skip to content

Commit

Permalink
exit 0 on no URL found
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Sep 10, 2024
1 parent a742945 commit 5828ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/ci/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ set -e

# script/ci/version_check

PR_BODY="$1"
PR_BODY="$@"

# Extract URL from PR description
WP_URL=$(echo "${PR_BODY}" | grep -oE 'https://community.openproject.org/(wp|work_packages|projects/[^/]+/work_packages)/[0-9]+')
WP_URL=$(echo "$PR_BODY" | grep -oE 'https://community.openproject.org/(wp|work_packages|projects/[^/]+/work_packages)/[0-9]+' || true)

if [ -z "$WP_URL" ]; then
echo "::warning::PR description does not contain a valid URL to an OpenProject ticket."
Expand Down

0 comments on commit 5828ee0

Please sign in to comment.