Skip to content

Commit

Permalink
BUILD-7112 EREQ-118 fix duplicated versions
Browse files Browse the repository at this point in the history
use /status API instead of /statuses
  • Loading branch information
SamirM-BE authored and julien-carsique-sonarsource committed Dec 19, 2024
1 parent b56f3eb commit c473fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions releasability-status/find_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

set -xeuo pipefail

description=$(gh api "/repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/statuses" \
--jq '.[] | select(.state == "success" and .context == ("repox-'"$GITHUB_REF_NAME"'")) | .description')
description=$(gh api "/repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status" \
--jq '.statuses[] | select(.state == "success" and .context == ("repox-'"$GITHUB_REF_NAME"'")).description')
version=$(echo "$description" | cut -d\' -f 2)
if [ -z "${version}" ]; then
echo "Unable to find promoted version"
Expand Down

0 comments on commit c473fad

Please sign in to comment.